Generates invalid XHTML code with nested lists
jdj25 - February 23, 2007 - 05:57
| Project: | widgEditor - A WYSIWYG editor |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
If you try to nest lists within one another, widgEditor improperly codes them.
Here is an example of how widgEditor codes nested lists.
<ol>
<li>Level 1 item 1</li>
<li>Level 1 item 2</li>
<ol>
<li>Level 2 item 1</li>
<li>Level 2 item 2</li>
</ol>
<li>Level 1 item 3</li>
</ol>To be XHTML compliant, the second list must be contained within a <li> ... </li> of the parent list. This is how it should be coded.
<ol>
<li>Level 1 item 1</li>
<li>Level 1 item 2
<ol>
<li>Level 2 item 1</li>
<li>Level 2 item 2</li>
</ol>
</li>
<li>Level 1 item 3</li>
</ol>
#1
When I tried to test under 6.x-1.0 release, it produced something like this:
<ul><li>Level 1 item</li>
<li>Level 1 item<br />
<ol>
<li>Level 2 item</li>
</ol>
</li>
<li>Level 1 item</li>
</ul>
Probably fixed with the original widgEditor 1.0.1.
#2
Automatically closed -- issue fixed for two weeks with no activity.