[wp-trac] [WordPress Trac] #18788: Remove redundant type attributes from script and style tags
    WordPress Trac 
    noreply at wordpress.org
       
    Wed Mar  2 00:06:16 UTC 2016
    
    
  
#18788: Remove redundant type attributes from script and style tags
---------------------------------+-----------------------------
 Reporter:  solarissmoke         |       Owner:  wonderboymusic
     Type:  enhancement          |      Status:  closed
 Priority:  normal               |   Milestone:  4.2
Component:  Script Loader        |     Version:  3.3
 Severity:  normal               |  Resolution:  fixed
 Keywords:  3.4-early has-patch  |     Focuses:  administration
---------------------------------+-----------------------------
Comment (by sephr):
 Replying to [comment:11 wonderboymusic]:
 > In [changeset:"31034"]:
 > {{{
 > #!CommitTicketReference repository="" revision="31034"
 > Inline `<script>`s that are only printed in the admin for pages that are
 served with the HTML5 doctype absolutely do not need `CDATA` comments.
 >
 > Props tw2113 for the initial patch.
 > See #18788.
 > }}}
 `CDATA` has nothing to do with the HTML5 doctype in the first place... It
 has to do with content type. Using the HTML5 doctype does not magically
 force an XHTML document into allowing invalid XHTML syntax.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18788#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list