Do not assert `required` HTML5 attribute when HTML5 compatibility is disabled.