WordPress.org

Making WordPress.org

Opened 2 years ago

Closed 2 years ago

#2798 closed defect (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>

Change History (1)

#1 @bfintal
2 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Posted in the wrong trac.

Note: See TracTickets for help on using tickets.