Closed matbech closed 5 years ago
The type attribute is not required for style.
This fixes the following warning from the HTML validator: The type attribute for the style element is not needed and should be omitted.
@matbech
This is only true for HTML5, not for XHTML and HTML4.
But you can check the Doctype in a view helper:
$this->view->plugin('doctype')->isHtml5()
Thanks for the changes. Now we need unit tests for the new behaviour. Check with and without the doctype HTML5.
Closing, as the requested changes made ~1year ago have not been made.
The type attribute is not required for style.
This fixes the following warning from the HTML validator: The type attribute for the style element is not needed and should be omitted.