Download & Extend

Generates invalid XHTML code with nested lists

Project:widgEditor - A WYSIWYG editor
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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>

Comments

#1

Version:5.x-1.x-dev» 6.x-1.0
Status:active» fixed

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

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

nobody click here