Remove support for <input usemap> and <object usemap>
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: lachlan.hunt, Unassigned)
References
()
Details
(Keywords: good-first-bug, site-compat)
Attachments
(1 file)
Comment hidden (obsolete) |
Comment 2•18 years ago
|
||
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 7•5 years ago
|
||
We should do this for the object
element as well.
Updated•5 years ago
|
Comment 8•5 years ago
|
||
willing to take this on if you can give me a little more context
https://searchfox.org/mozilla-central/search?q=public+nsImageLoadingContent&path=&case=false®exp=false shows which elements inherit
imageloading content.
https://searchfox.org/mozilla-central/rev/014fe72eaba26dcf6082fb9bbaf208f97a38594e/dom/base/nsImageLoadingContent.cpp#1768,1770 should probably filter out the elements types for which we don't want to support usemap.
https://searchfox.org/mozilla-central/rev/014fe72eaba26dcf6082fb9bbaf208f97a38594e/dom/base/nsINode.h#764-767 and similar method could be probably useful.
And usemap usage from the elements it is not needed should be removed
https://searchfox.org/mozilla-central/search?q=%3A%3Ausemap&path=&case=false®exp=false
Updated•3 years ago
|
Comment 11•2 years ago
|
||
Updated•2 years ago
|
Comment 12•2 years ago
|
||
Is the analysis in comment #0 (16 years ago!) still valid? Caniuse says usemap
on input
/object
is supported almost everywhere.
Comment 13•2 years ago
|
||
Both are marked as obsolete in the spec https://html.spec.whatwg.org/multipage/obsolete.html#dom-object-usemap and neither work in Chrome and Safari. (I couldn't get <object> to work either in Firefox despite the support)
Comment 14•2 years ago
|
||
Comment 15•2 years ago
|
||
Backed out for causing failures on test_interactive_content_in_label.html
- backout: https://hg.mozilla.org/integration/autoland/rev/144c26caf658d56a61dc0091fe77e093f4d03371
- push: https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&revision=b387df97a255c76bfc071ad52892e97cbe14403f&selectedTaskRun=PIG0UhM4T7WmDeUkP8Q9_w.0
- failure log: https://treeherder.mozilla.org/logviewer?job_id=423104712&repo=autoland&lineNumber=2636
[task 2023-07-19T05:56:49.649Z] 05:56:49 INFO - TEST-PASS | dom/html/test/forms/test_interactive_content_in_label.html | mouse click on interactive content LABEL shouldn't dispatch event to label target
[task 2023-07-19T05:56:49.649Z] 05:56:49 INFO - Buffered messages finished
[task 2023-07-19T05:56:49.649Z] 05:56:49 WARNING - TEST-UNEXPECTED-FAIL | dom/html/test/forms/test_interactive_content_in_label.html | mouse click on interactive content OBJECT shouldn't dispatch event to label target - got true, expected false
[task 2023-07-19T05:56:49.649Z] 05:56:49 INFO - SimpleTest.is@SimpleTest/SimpleTest.js:507:14
[task 2023-07-19T05:56:49.650Z] 05:56:49 INFO - @dom/html/test/forms/test_interactive_content_in_label.html:82:5
[task 2023-07-19T05:56:49.650Z] 05:56:49 INFO - TEST-PASS | dom/html/test/forms/test_interactive_content_in_label.html | mouse click on interactive content SELECT shouldn't dispatch event to label target
Comment 16•2 years ago
|
||
- Backout merged to mozilla-central: https://hg.mozilla.org/mozilla-central/rev/144c26caf658d56a61dc0091fe77e093f4d03371
Comment 17•2 years ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.
Comment 19•1 years ago
|
||
Clear a needinfo that is pending on an inactive user.
Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as INCOMPLETE
.
For more information, please visit BugBot documentation.
Description
•