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

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 18 16:01:54 UTC 2010


#11939: Make Script Elements HTML4 and XHTML compilant
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.0      
Component:  Validation    |     Version:  3.0      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------
 Following the best practised standards script elements should be
 compatible with HTML4 ''and'' XHTML because often XHTML documents are
 parsed as HTML but might be parsed as XML as well. So both standards
 should be taken into account when delivering XHTML documents like
 WordPress does.

 The current output is not XML compilant because script elements are
 #PCDATA blocks, not #CDATA blocks.

 Attached you find a patch that properly escapes #CDATA / #PCDATA script-
 element contents.

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


More information about the wp-trac mailing list