Opened 9 years ago
Closed 9 years ago
#2798 closed defect (bug) (invalid)
Incorrect paragraph tag placement in wpautop
| Reported by: | bfintal | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Posted in the wrong trac.