We map the <dir type> attribute but other engines don't seem to
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox115 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
Details
Attachments
(2 files)
data:text/html,<dir type="square"><li>Foo
Shows a square in Firefox, but a circle in WebKit and Blink. We have zero tests for this (this comes from a link that Marco sent me about areas of the code with no test coverage).
The spec says:
User agents must treat dir elements in a manner equivalent to ul elements in terms of semantics and for purposes of rendering.
Unclear whether that includes attribute mapping...
Given this needs a bit of special code, I'd propose to drop the attribute mapping (matching WebKit and Blink) and adding a WPT test to test it doesn't work. Alternatively we should file a spec bug to be explicit, and file WebKit and Blink bugs...
Simon, do you have any strong opinions here?
Comment 1•1 year ago
|
||
The quoted text is indeed a bit unclear but the rendering part is, I think, more for UAs that don't fall into the https://html.spec.whatwg.org/multipage/infrastructure.html#renderingUA conformance class. The Rendering section is more precise for what the expected rendering is, and it only says type
is a preshint for ul
, ol
, li
: https://html.spec.whatwg.org/multipage/rendering.html#lists
I think I've discussed changing this at some point, but dir
being obsolete and type
is also obsolete on ul
, it's not worth making it work. The shortest path to interop currently is to change Gecko.
Assignee | ||
Comment 2•1 year ago
|
||
We also parsed the start attribute, but we actually don't use it.
Mapping of start broke in bug 288704, where it was migrated to map to
counter-reset, instead of being looked up by layout directly.
Updated•1 year ago
|
Assignee | ||
Comment 3•1 year ago
|
||
While I'm around let's remove redundant virtual keywords.
Depends on D177624
Comment 6•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ec98807a25aa
https://hg.mozilla.org/mozilla-central/rev/ffee8e3a7870
Description
•