[wp-trac] [WordPress Trac] #27350: Invalid HTML Output
WordPress Trac
noreply at wordpress.org
Sun Sep 22 17:55:47 UTC 2019
#27350: Invalid HTML Output
----------------------------------------------+----------------------------
Reporter: miqrogroove | Owner: pento
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Future
| Release
Component: Formatting | Version: 3.8
Severity: normal | Resolution:
Keywords: wpautop has-patch has-unit-tests | Focuses:
----------------------------------------------+----------------------------
Changes (by azaozz):
* milestone: 5.3 => Future Release
Comment:
This is one of the "peculiar ways" wpautop works... The "Text" tab in the
classic editor has a visual component to it. It is not a "pure HTML"
input, it converts line breaks to paragraphs and `<br>` tags.
In this case the error is that the first closing `</p>` should be a
`<br>`. It may be possible to add another regex to search for this exact
case and fix it, but chances are something else will break. The bad part
about such breakage is that it gets saved to the DB and then introduces
problems on every page load on the front-end. As wpautop use is on its way
out, not sure it's worth the risks of fixing these rare edge cases.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27350#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list