[wp-trac] [WordPress Trac] #29913: wptexturize should handle broken HTML consistently
WordPress Trac
noreply at wordpress.org
Tue Nov 4 17:42:29 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 miqrogroove):
Replying to [comment:5 kitchin]:
> 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>`
I agree. The new comment parser works great though. Starting with the
<hr, everything up to the first > is matched as an HTML element and
everything up to the <br is treated as plain text. I couldn't find any
new bugs with this test case. :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29913#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list