Bug #14957
closed
Lists are not XHTML compatible
Added by Markus Walter about 19 years ago.
Updated over 18 years ago.
Category:
RTE (rtehtmlarea + ckeditor)
Description
When I want to create Lists with a second level, the produced HTML-Code is not XHTML-compatible:
The output is:
<ul><li>item1</li><li>item2</li><ul><li>item3</li><li>item4</li></ul><li>item5</li></ul>
correct would be
<ul><li>item1</li><li>item2<ul><li>item3</li><li>item4</li></ul></li><li>item5</li></ul>
(issue imported from #M1434)
Files
Posting HTML-Code doesn't work. Please see the attached list.txt
Please explain how you produce the invalid nested lists and with what browser.
I'm using IE6 and Firefox 1.0.6:
How to produce the code:
Klick on "Bulleted List"
enter "test" + RETURN
enter "test" + RETURN
Klick on "Increase Indent", enter "test" + RETURN
Klick on "Decrease Indent", enter "test"
That's it.
With this editor the Code is still invalid. What I found out:
I klicked on "Bulleted List"
then I entered "test" 4x
I marked the third "test" and klicked on "Increase Indent": Now the Code is valid even after entering more items on the same level.
But when I mark the second and the third item together and increase indent the Code is invalid again.
Please try again after clearing your browser cache.
<ul><li>item1<ul><li>item2</li></ul></li></ul>
It's nearly correct:
When I want to decrease the Indent to get on the same level as item1 the code is just valid klicking on "Bulleted List". If I use "Decrease Indent" the HTML is invalid.
The result is different in Mozilla/Firefox than in IE, but I get valid HTML in both cases. What do you get, in what browser?
I expect this problem to be corrected in version 0.7.2.
Also available in: Atom
PDF