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

Gurpartap Singh’s picture

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.

Status: Fixed » Closed (fixed)

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