[wp-trac] [WordPress Trac] #8912: wp_texturize breaks HTML comments in posts

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 15 22:12:47 UTC 2010


#8912: wp_texturize breaks HTML comments in posts
--------------------------+-------------------------------------------------
 Reporter:  Otto42        |        Owner:  anonymous
     Type:  defect (bug)  |       Status:  reopened 
 Priority:  normal        |    Milestone:  3.0      
Component:  Formatting    |      Version:  2.9.2    
 Severity:  normal        |   Resolution:           
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by Otto42):

  * status:  closed => reopened
  * resolution:  worksforme =>
  * version:  2.7 => 2.9.2
  * component:  General => Formatting
  * milestone:  => 3.0


Comment:

 Have a confirmed failure.

 This code fails:
 {{{
 <ul><li>Hello.</li><!--<li>Goodbye.</li>--></ul>
 }}}

 It gets converted to this:
 {{{
 <ul>
 <li>Hello.</li>
 <p><!--
 <li>Goodbye.</li>
 <p>&#8211;></ul>
 }}}

 Happens on a default installation.

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


More information about the wp-trac mailing list