[wp-trac] [WordPress Trac] #29913: wptexturize should handle broken HTML consistently

WordPress Trac noreply at wordpress.org
Tue Nov 4 15:54:03 UTC 2014


#29913: wptexturize should handle broken HTML consistently
------------------------------------------+------------------------------
 Reporter:  kitchin                       |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Formatting                    |     Version:  1.5
 Severity:  minor                         |  Resolution:
 Keywords:  wptexturize needs-unit-tests  |     Focuses:
------------------------------------------+------------------------------

Comment (by kitchin):

 As html5 in Gecko, Webkit and Trident it renders the same as
 `a <hr> World --> <br>`
 Pathological cases like that are work for a full html parser. Whereas I'm
 guessing any simplified parser would strip comments first, giving
 `a <hr>`

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29913#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list