Closed
Bug 1849485
Opened 2 years ago
Closed 1 year ago
Invalid HTML created for nested lists
Categories
(Thunderbird :: Message Compose Window, defect)
Tracking
(Not tracked)
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:
- Compose an HTML e-mail
- Add a nested list:
- 1
- 1.1
- 1.2
- 1.2.1
- 1.3
- 2
- 2.1
- 3
- Send.
- 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>
Updated•1 year ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•