Bug #14317
closedRTE produces invalid nested list markup
0%
Description
When nesting ordered and unordered lists, the RTE produces markup like this:
<ul>
<li>List item</li>
<li>List item</li>
<ol>
<li>List item</li>
</ol>
<li>List item</li>
</ul>
But , <ol> and <ul> (and, for that matter, any other elements except <li>) are not permitted immediately inside <ol>/<ul> elements. The correct markup would be like this:
<ul>
<li>List item</li>
<li>List item
<ol>
<li>List item</li>
</ol>
</li>
<li>List item</li>
</ul>
...in other words, the nested list should be wrapped in one of the <li> elements from the outer list. Unless I'm mistaken, this can't be adjusted in the RTE config.
(issue imported from #M360)
Files
Updated by Christopher about 20 years ago
Arg. How aggravating. I didn't realize that html would be displayed as ...html.
So, please see the attached file.
Updated by Stanislas Rolland over 18 years ago
I think the markup of nested lists would be correct when produced by htmlArea RTE. Please confirm.
Updated by Christopher over 18 years ago
Confirmed; htmlArea RTE does produce correctly nested lists!
Absolutely terrific news!
Updated by Stanislas Rolland over 18 years ago
As this is working in extension rtehtmlarea, and I don't think it will be fixed in old rte, I am closing this issue.