Closed Bug 1849485 Opened 2 years ago Closed 1 year ago

Invalid HTML created for nested lists

Categories

(Thunderbird :: Message Compose Window, defect)

Thunderbird 115
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 54479

People

(Reporter: the.solipsist, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0

Steps to reproduce:

  1. Compose an HTML e-mail
  2. Add a nested list:
- 1
  - 1.1
  - 1.2
    - 1.2.1
  - 1.3
- 2
  - 2.1
- 3
  1. Send.
  2. Check the source code (ctrl + u)

Actual results:

<ul>
  <li>1</li>
  <ul>
    <li>1.1</li>
    <li>1.2</li>
    <ul>
      <li>1.2.1</li>
    </ul>
    <li>1.3</li>
  </ul>
  <li>2</li>
  <ul>
    <li>2.1</li>
    <ul>
      <li>2.1.1</li>
    </ul>
  </ul>
  <li>3</li>
</ul>

This is invalid HTML. The W3C HTML validator notes: "Element ul not allowed as child of element ul in this context."

Expected results:

Valid HTML should have been generated:

<ul>
<li>1
<ul>
<li>1.1</li>
<li>1.2
<ul>
<li>1.2.1</li>
</ul>
</li>
<li>1.3</li>
</ul>
</li>
<li>2
<ul>
<li>2.1
<ul>
<li>2.1.1</li>
</ul>
</li>
</ul>
</li>
<li>3</li>
</ul>

Dupe of bug 54479.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 54479
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.