Opened 11 years ago
Closed 6 years ago
#28762 closed defect (bug) (duplicate)
Self-closing HTML tags create orphaned closing </p> tag in wpautop
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.9.1 |
Component: | Formatting | Keywords: | has-unit-tests wpautop |
Focuses: | Cc: |
Description
When using self closing tags like <hr> followed by a line of text separated by newline, wpautop returns invalid HTML.
Consider the following example:
<hr>
test
When inserting this into WordPress editor in text mode, the_content will return the following invalid HTML:
<hr>
test</p>
Attachments (2)
Change History (9)
#2
@
11 years ago
Thanks @maimariel for your bug report. The tests confirm what you are reporting and this should be addressed soon!
#3
@
11 years ago
- Component changed from General to Formatting
- Focuses template removed
- Keywords has-unit-tests added; has-unit-test removed
Note: See
TracTickets for help on using
tickets.
added unit to check if handle self closing tag