[wp-trac] [WordPress Trac] #39307: </p> tag inserted in <figure>
WordPress Trac
noreply at wordpress.org
Fri Dec 16 16:52:48 UTC 2016
#39307: </p> tag inserted in <figure>
--------------------------+-----------------------------
Reporter: sujag | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 4.7
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
since wordpress 4.7 HTML entered in "text" mode results in invalid result.
Stray </p> get's inserted into <figure> after image-Element.
post content
{{{
<figure><img src="/wp-content/uploads/example.jpg" alt="something"
/><figcaption>Caption</figcaption></figure>
}}}
generated markup note wrong </p> after <img>
{{{
<figure><img src="/wp-content/uploads/example.jpg" alt="something" /></p>
<figcaption>Caption</figcaption>
</figure>
}}}
Up to 4.6 this could be avoided by writing the whole figure-Element in one
line, this workaround doesn't help anymore in 4.7
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39307>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list