[wp-trac] [WordPress Trac] #59432: Compliant with W3C coding standards

WordPress Trac noreply at wordpress.org
Sat Sep 23 08:04:02 UTC 2023


#59432: Compliant with W3C coding standards
-------------------------------------------------+-------------------------
 Reporter:  agypten                              |      Owner:  (none)
     Type:  enhancement                          |     Status:  new
 Priority:  normal                               |  Milestone:  Awaiting
                                                 |  Review
Component:  HTML API                             |    Version:  6.3.1
 Severity:  minor                                |   Keywords:
  Focuses:  javascript, css, performance,        |
  coding-standards                               |
-------------------------------------------------+-------------------------
 When validating any WordPress site, warnings appear:
 1. Trailing slash on void elements has no effect and interacts badly with
 unquoted attribute values. Example: <meta name='robots' content='noindex,
 nofollow'/>
 <link rel="alternate" href="https://samesite.com/" hreflang="US"/>
 Also in tags img, button etc
 2. The type attribute for the style element is not needed and should be
 omitted.
 Example: <style id='global-styles-inline-css' type='text/css'>
 3.  The type attribute is unnecessary for JavaScript resources.
 Example: <script type='text/javascript' ...>

 A suggestion for improvement is to fix these warnings by removing
 attributes and symbols that are no longer needed. This will reduce the
 amount of code and relieve SEO optimizers from headaches).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59432>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list