Changes between Initial Version and Version 13 of Ticket #5250
- Timestamp:
- 10/04/2015 10:56:37 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5250
-
Property
Status
changed from
newtoclosed -
Property
Severity
changed from
trivialtonormal - Property Cc Jani Uusitalo added
-
Property
Component
changed from
GeneraltoFormatting -
Property
Summary
changed from
Unclosed p tags -- not XHTML-compliant!towpautop() issue with lists -
Property
Priority
changed from
lowtonormal -
Property
Milestone
changed from
2.5to - Property Keywords needs-patch needs-unit-tests added; xhtml removed
-
Property
Resolution
changed from
towontfix
-
Property
Status
changed from
-
Ticket #5250 – Description
initial v13 4 4 The problem, in short: WordPress inserted a number of unclosed `<p>` tags into my post. It should either insert correctly closed tags, or none at all. I honestly would prefer the former. 5 5 6 7 6 In detail: I had HTML code very similar to this: 8 7 8 {{{ 9 9 <ul> 10 10 <li>text<ul> … … 12 12 </ul>more text</li> 13 13 </ul> 14 14 }}} 15 15 16 16 This was automatically converted to: 17 17 18 {{{ 18 19 <ul> 19 20 <li>text<ul> … … 21 22 </ul><p>more text</li> 22 23 </ul> 24 }}} 23 25 24 26 Note the extra `<p>` tag in the above, which is unclosed (making the W3C validator choke on my website). … … 26 28 Also note, I was not using the WYSIWYG editor (turning it off was the first thing I did), so it's unlikely to be due to that. 27 29 28 29 30 As a workaround, manually inserting properly closed `<p>` tags works just fine: 30 31 32 {{{ 31 33 <ul> 32 34 <li>text<ul> … … 34 36 </ul><p>more text</p></li> 35 37 </ul> 38 }}} 36 39 37 40 Since this workaround exists, the bug is not very prioritary, but it should also (hopefully) be easy to fix.