Opened 15 years ago
Closed 7 years ago
#18136 closed defect (bug) (duplicate)
WordPress Adding Spurious </p>
| Reported by: | singpolyma | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Formatting | Version: | |
| Severity: | normal | Keywords: | wpautop has-patch needs-refresh |
| Cc: | Focuses: |
Description
If you look at this page: https://singpolyma.net/2011/06/dystoparx-part-12/ WordPress seems to be adding extra </p> tags before the </div>s This causes major well-formedness problems on the page.
Attachments (2)
Change History (25)
#3
@
14 years ago
I checked the code on some of the other more recent posts and it doesn't show anymore. This has more than one year. Shouldn't it be closed?
#4
@
14 years ago
- Milestone Awaiting Review
- Resolution → worksforme
- Severity major → normal
- Status new → closed
There are still excess </p> tags in the linked post, but I couldn't reproduce the issue by copying the content from the HTML source (also tried switching to visual editor and back to HTML) neither in 3.4 nor in current trunk.
Free free to reopen with steps to reproduce if there's still a problem.
#5
@
14 years ago
- Resolution worksforme
- Status closed → reopened
That's the input as showing on my WP dashboard. I tried saving again and with X-Valid turned off as well, just in case that was transforming it (but it's not, still shows as fine in the dashboard), but it's still got the extra </p> in the page.
#7
@
14 years ago
- Milestone → Awaiting Review
Confirmed when pasting the linked input into HTML (Text in 3.5) editor, saving and viewing the post.
After switching to visual editor and back, the extra </p> is gone.
#8
@
14 years ago
I enabled the visual editor, switched to it and then switched back, and it broke some of my other markup, but after fixing that it does seem to be a workaround for the issue.
Still seems like a bug, though.
#9
@
14 years ago
Got it down to this:
- Extra closing P
<div><p>123</p> </div>
- Works as expected
<div><p>123</p></div>
Generally autop should ignore the whole content as there are no line breaks in there. What happens in this case: autop inserts a line break after the </p> and then threats the white space as another row.
A temporary workaround would be to remove all spaces between block tags.
This ticket was mentioned in IRC in #wordpress-dev by SergeyBiryukov. View the logs.
13 years ago
#17
@
12 years ago
- Keywords needs-patch added; needs-unit-tests removed
Looks like this still needs a patch but already has unit tests.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Please post the HTML you have in your post content. We need before and after.