Opened 7 years ago
Closed 7 years ago
#2798 closed defect (bug) (invalid)
Incorrect paragraph tag placement in wpautop
Reported by: | bfintal | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | General | Keywords: | |
Cc: |
Description
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>
Note: See
TracTickets for help on using
tickets.
Posted in the wrong trac.