[wp-trac] [WordPress Trac] #3670: Removing CDATA close tag ( ]]> ) unbalances the CDATA block

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 4 15:54:56 UTC 2010


#3670: Removing CDATA close tag ( ]]> ) unbalances the CDATA block
--------------------------+-------------------------------------------------
 Reporter:  scenic        |       Owner:  andy                                          
     Type:  defect (bug)  |      Status:  new                                           
 Priority:  high          |   Milestone:  2.9.2                                         
Component:  Template      |     Version:  2.1                                           
 Severity:  major         |    Keywords:  has-patch needs-testing needs-unit-tests early
--------------------------+-------------------------------------------------
Changes (by shidouhikari):

 * cc: shidouhikari (added)
  * priority:  normal => high
  * severity:  normal => major
  * milestone:  3.0 => 2.9.2


Comment:

 Why call it invalid report?

 Plugins should be allowed to add javascript into posts, and to do so they
 need to wrap the code in CDATA to keep XHTML valid.

 If it is being done just for RSS sake, do it only when the content is
 feeded at all.

 2 solutions were suggested, 3 years passed, and the code is still there
 without anybody defending it. If it must be there somebody should point
 why. If not, move it to a filter with high hook priority and let each
 website owner / plugin developer deal with it.

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


More information about the wp-trac mailing list