Open
Bug 1706218
Opened 4 years ago
Updated 2 years ago
Give priority to name over id for usemap reference in image map
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
People
(Reporter: karlcow, Unassigned)
Details
(Keywords: parity-chrome)
Attachments
(1 file)
7.67 KB,
text/html
|
Details |
- Open the test case
- Click on working and it goes to https://mozilla.org/
- Back
- Click on Not Working
Expected:
Goes to https://bugzilla.mozilla.org/
Actual:
- In Blink and WebKit, the Not working is going to https://bugzilla.mozilla.org/
- In Gecko, it is going to https://mozilla.org/
Gecko is using the id
for deferencing the imagemap coordinates.
Blink/WebKit are using the name
.
Not sure which one is right from the point of view of spec but just noticing it after a report on #webcompat on matrix.
Comment 1•4 years ago
|
||
Aha, Gecko just gives priority based on the order of the attributes.
https://searchfox.org/mozilla-central/rev/37edd2782e67e716dd07a85016da07b4d6275e5d/dom/html/HTMLImageElement.cpp#334-341
Severity: -- → S3
Priority: -- → P3
Reporter | ||
Comment 2•4 years ago
|
||
Oh then we should be careful, maybe chrome is giving a similar priority but reversed? Need more tests with different orders.
Updated•2 years ago
|
Webcompat Priority: ? → P3
You need to log in
before you can comment on or make changes to this bug.
Description
•