[wp-trac] [WordPress Trac] #11939: Make Script Elements HTML4 and XHTML compilant

WordPress Trac wp-trac at lists.automattic.com
Thu May 20 15:56:43 UTC 2010


#11939: Make Script Elements HTML4 and XHTML compilant
-----------------------------+----------------------------------------------
 Reporter:  hakre            |        Owner:                
     Type:  feature request  |       Status:  closed        
 Priority:  low              |    Milestone:  Future Release
Component:  Validation       |      Version:  3.0           
 Severity:  normal           |   Resolution:  wontfix       
 Keywords:                   |  
-----------------------------+----------------------------------------------

Comment(by hakre):

 Yes, and that's what this is exactly is about: CDATA and the comments.

 That's why I originally made that patch. When it comes to compatibility,
 usability and validity there is pretty much only that akward variant if
 you use the HTML mimetype - which WordPress is using at the moment.

 I consider it as best practice, but naturally it's completely free to
 adopt to that or not.

 {{{
 <style type="text/css"><!--/*--><![CDATA[/*><!--*/
 ...
 /*]]>*/--></style>

 <script type="text/javascript"><!--//--><![CDATA[//><!--
 ...
 //--><!]]></script>
 }}}

 HTML 2.0 rules btw.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11939#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list