Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.7.5, 3.8.2, 3.9
Description
Nested lists should be inside a <li> element of the list in which it is nested. At the moment, embedded <ul> tags appear at the same level as the <li> tags instead of inside.
HTML5 W3C ul spec: HTML5 ul. Note that a <ul> element may contain exactly zero or more <li> elements.
Steps to reproduce:
- Create a new page or label in Moodle
- Click the Atto editor toolbar button to create a bulleted (unordered) list.
- Type a few lines of content. A single word will do.
- Press the Indent button in the Atto toolbar.
- Type a few more lines of content.
- Switch to the HTML view.
Instead of valid HTML similar to this:
<ul> |
<li>Item 1</li> |
<li>Item 2 |
<ul> |
<li>Item 2.1</li> |
</ul> |
</li></ul> |
Atto is producing this invalid HTML:
<ul> |
<li>Item 1</li> |
<li>Item 2</li> |
<ul> |
<li>Item 2.1</li> |
</ul> |
</ul> |
What is even worse is that, if you try to fix it, Atto just goes and re-arranges it all back to the way it was.
This creates an accessibility failure of WCAG 2.1, specifically criterion 4.1.1 Parsing.
Attachments
Issue Links
- Testing discovered
-
MDL-68634 Atto Nested ordered list items breaking list numerical sequencing
-
- Closed
-