Open Bug 392994 Opened 18 years ago Updated 10 months ago

Remove support for <input usemap> and <object usemap>

Categories

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

defect

Tracking

()

People

(Reporter: lachlan.hunt, Unassigned)

References

()

Details

(Keywords: good-first-bug, site-compat)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 Image maps on <input type=image> are currently supported (see bug 31188). The URL given above provides some details about a survey conducted by Hixie, which lists a few hundred pages that use image maps on inputs (many of which break in Firefox) and provides some statistics of its use. Some additional analysis of those pages in the survey is provided here. http://lists.w3.org/Archives/Public/public-html/2007Aug/0506.html This should be removed for the following reasons: 1. IE and Safari do not support this. 2. Very few sites use this, and many that do function better in browsers that don't. 3. The insignificant portion of sites that do rely on this to some degree are already broken in IE, and are outweighed by those that depend on it not working. 4. As its currently implemented, it provides no functionality beyond that provided by <img usemap>. 5. HTML5 currently will not be including the usemap attribute on input elements. 6. It appears that the intended purpose of it in HTML4 was to provide an accessible alternative to server-side image maps for form submission. But since, as it's currently implemented, image maps on input elements do not provide form submission, no accessibility benefits are achieved. 7. No significant use cases for client site image map form submission exist which cannot already be provided using alternative techniques. Reproducible: Always Steps to Reproduce: 1. Go to some of the pages listed in survey 2. Locate the input elements that use usemap 3. Click the region covered by an <area> 4. The form should submit, but doesn't 5. Compare with a browser that doesn't support usemap on input Actual Results: The <area> covering the input prevents the form submission and creates usability problems. Expected Results: The forms should submit.
Point 2 being the main one here. We can get better compatibility with sites by dropping this.
Status: UNCONFIRMED → NEW
Component: General → HTML: Form Submission
Ever confirmed: true
Product: Firefox → Core
QA Contact: general → form-submission
Version: unspecified → Trunk
Component: HTML: Form Submission → DOM: Core & HTML
Type: defect → task
Keywords: site-compat
Keywords: good-first-bug

We should do this for the object element as well.

Type: task → defect
OS: Windows XP → All
Hardware: x86 → All
Summary: Remove Support for the usemap Attribute on <input type=image> Elements → Remove support for <input usemap> and <object usemap>

willing to take this on if you can give me a little more context

Severity: normal → S3
Assignee: nobody → jonathan
Status: NEW → ASSIGNED

Is the analysis in comment #0 (16 years ago!) still valid? Caniuse says usemap on input/object is supported almost everywhere.

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)

Pushed by pvanderbeken@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b387df97a255 Remove support for usemap for Object and Input elements. r=peterv

Backed out for causing failures on test_interactive_content_in_label.html

[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
Flags: needinfo?(jonathan)

This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.

Assignee: jonathan → nobody
Status: ASSIGNED → NEW

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.

Flags: needinfo?(jonathan)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: