Opened 3 years ago
Last modified 2 years ago
#15006 new defect (bug)
Invalid Content Markup
| Reported by: |
|
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)
comment:1
miqrogroove — 3 years ago
- 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.
comment:5
miqrogroove — 3 years ago
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.
Note: See
TracTickets for help on using
tickets.

The workaround I am currently using:
Putting any text in the second paragraph somehow fixes the problem.