better HTML compatibility