[wp-meta] [Making WordPress.org] #2798: Incorrect paragraph tag placement in wpautop
Making WordPress.org
noreply at wordpress.org
Sat Apr 29 02:13:29 UTC 2017
#2798: Incorrect paragraph tag placement in wpautop
---------------------+-----------------
Reporter: bfintal | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: General | Keywords:
---------------------+-----------------
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://meta.trac.wordpress.org/ticket/2798>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list