Opened 3 years ago

Last modified 2 years ago

#15006 new defect (bug)

Invalid Content Markup

Reported by: miqrogroove Owned by:
Priority: normal Milestone: Future Release
Component: Formatting Version: 3.0
Severity: minor Keywords: wpautop needs-patch
Cc:

Description (last modified by dd32)

I have a page post that starts like this:

<p style="text-align: right;">Text Here</p>
<p style="text-align: right;"></p>
More Text Here

The HTML source saves correctly, but the page output omits the closing tag for the second P element, causing the rest of the page to be invalid.

If you have any trouble reproducing this I will be happy to debug it on my server.

Change History (7)

The workaround I am currently using:

<p style="text-align: right;">Text Here</p>
<p style="text-align: right;">.</p>
More Text Here

Putting any text in the second paragraph somehow fixes the problem.

  • Component changed from General to Formatting

Confirmed.

  • Severity changed from normal to minor

Why do you need an empty <p> tag anyway?

Unsurprisingly perhaps, when I activated PHP Markdown (which automatically disables wpautop and does its own autoparagraphing) the problem disappeared.

Why do you need an empty <p> tag anyway?

This ticket is about invalid output. If there's a problem in the html editor you should make a separate ticket for that.

comment:6   dd322 years ago

  • Description modified (diff)

comment:7   dd322 years ago

  • Keywords wpautop needs-patch added
  • Milestone changed from Awaiting Review to Future Release
Note: See TracTickets for help on using tickets.