[wp-trac] [WordPress Trac] #14674: HR destroys HTML
WordPress Trac
noreply at wordpress.org
Tue Dec 27 10:27:01 UTC 2016
#14674: HR destroys HTML
---------------------------------------------+-----------------------------
Reporter: thomask | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Future Release
Component: Formatting | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch needs-testing wpautop | Focuses:
---------------------------------------------+-----------------------------
Comment (by MattyRob):
I coincidently found that the above patch (14674.3.diff) fails PHPUnit
tests but I believe that this is because the unit tests are not accurate.
The test fails expecting `<hr>foo</hr>` but getting `<hr>\n<p>foo</hr>`
however there should not be any content within `<hr>` tags as it's self
closing.
Can the `<hr>` test simply be removed from the unit tests?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/14674#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list