[wp-trac] [WordPress Trac] #8912: wptexturize malforms HTML comments that contain HTML tags
WordPress Trac
noreply at wordpress.org
Fri Jan 17 07:41:37 UTC 2014
#8912: wptexturize malforms HTML comments that contain HTML tags
--------------------------+-----------------------------
Reporter: Otto42 | Owner: anonymous
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Future Release
Component: Formatting | Version: 2.7
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+-----------------------------
Changes (by nacin):
* keywords: has-patch needs-refresh => has-patch
Comment:
[attachment:8912.diff] is a cheap patch. It simply does a lookahead for
`>` before replacing `--` with an en dash. So, the closing HTML comment is
at least no longer broken. This only allows an assertion to pass, which
I've broken off into a discrete test.
The bug still remains that inside HTML comments, things are still
texturized. (As seen by the failed test.) Given the nature of HTML
comments, this isn't a big deal, but it sure would be a nicer fix overall.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/8912#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list