Type Attributes
-
Hi, and thanks for continuing to maintain such a great plugin.
I just wanted to raise awareness that there are six occurrences of type attributes in the code that are now no longer needed and are warning in HTML5 validators.
So:
<style type="text/css">
And
<script type="text/javascript">
Can now be replaced with:
<style>
And
<script>
If you wanted to be ultra complaint with older HTML you could use:
$type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';
<style<?php echo $type_attr; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Type Attributes’ is closed to new replies.