Closed Bug 1586692 Opened 5 years ago Closed 4 years ago

Nested `<ol>`s produce wrong numbering

Categories

(Core :: DOM: Core & HTML, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1548753
Webcompat Priority ?

People

(Reporter: mbrodesser-Igalia, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

STR:
Open data:text/html, <ol start="5"> <ol><li>u</li></ol> <li>x</li> </ol>

Expected result:

   1. u
5. x

Actual result:

   1. u
2. x

Chrome produces the expected result.

Webcompat Priority: --- → ?

Moving Webcompat Priority back to default value.
Feel free to re-nominate with providing a url where users encounter different experience cross browsers due to this defect.

Webcompat Priority: ? → ---
Priority: -- → P3
Attached image screenshot of problem (obsolete) (deleted) —

I experience this defect when sending emails in a web interface. When I try to make a nested list in ProtonMail, the numbering is off. I do not experience this problem on Safari. Screenshot attached.

Attached image screenshot of problem.png (deleted) —
Attachment #9161314 - Attachment is obsolete: true

Changing the title because I think the problem is broader than that. As far as I can tell, an <ol> that has another <ol> nested inside will always resume the numbering of the nested list rather than continuing its own numbering.

(In reply to Hsin-Yi Tsai [:hsinyi] from comment #1)

Moving Webcompat Priority back to default value.
Feel free to re-nominate with providing a url where users encounter different experience cross browsers due to this defect.

AFAICT there is no way to see ProtonMail's webmail interface without logging in, so I can't really provide a URL. But I provided screenshots above. If a URL is necessary, here is a JSFiddle containing approximately the same code.

Webcompat Priority: --- → ?
Summary: Nested `<ol>`s with different start values produce visibly wrong result → Nested `<ol>`s produce wrong numbering
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: