[wp-trac] [WordPress Trac] #40603: Incorrect paragraph tag placement in wpautop
WordPress Trac
noreply at wordpress.org
Sat Apr 29 02:20:19 UTC 2017
#40603: Incorrect paragraph tag placement in wpautop
--------------------------+-----------------------------
Reporter: bfintal | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 4.7.4
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
If you have an inline element and a block element beside each other while
wrapped inside a block element, such as this:
<div><input/><div></div></div>
Running `wpautop` on it incorrectly adds a misplaced `</p>` in there:
<div><input/></p>
<div>Content</div>
</div>
Same goes when the block element goes first then an inline element:
<div><p>Content</p><span>Span</span></div>
You get a misplaced `<p>`:
<div>
<p>Content</p>
<p><span>Span</span></div>
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40603>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list