Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obsolete <object usemap> #6283

Merged
merged 1 commit into from
Mar 3, 2021
Merged

Obsolete <object usemap> #6283

merged 1 commit into from
Mar 3, 2021

Conversation

annevk
Copy link
Member

@annevk annevk commented Jan 12, 2021

It does not appear to be implemented by Chrome or Safari, except for the fact that it makes object interactive.

(See WHATWG Working Mode: Changes for more details.)


/dom.html ( diff )
/iframe-embed-object.html ( diff )
/image-maps.html ( diff )
/indices.html ( diff )
/obsolete.html ( diff )

@annevk annevk added removal/deprecation Removing or deprecating a feature topic: embed and object labels Jan 12, 2021
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some content model stuff is wrong, I think, but otherwise very nice catch.

source Show resolved Hide resolved
source Outdated Show resolved Hide resolved
source Outdated Show resolved Hide resolved
source Outdated
@@ -116901,6 +116887,10 @@ interface <dfn>HTMLFontElement</dfn> : <span>HTMLElement</span> {
<code>object</code> element must <span>reflect</span> the element's <code
data-x="attr-object-codetype">codetype</code> content attribute.</p>

<p>The <dfn><code data-x="dom-object-useMap">useMap</code></dfn> IDL attribute of the
<code>object</code> element must <span>reflect</span> the element's <code
data-x="attr-object-usemap">usemap</code> content attribute.</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To confirm, this part is implemented in Chrome (and probably inherited from Safari).

source Outdated Show resolved Hide resolved
annevk added a commit to web-platform-tests/wpt that referenced this pull request Jan 14, 2021
@annevk annevk added the do not merge yet Pull request must not be merged per rationale in comment label Jan 14, 2021
@annevk
Copy link
Member Author

annevk commented Jan 14, 2021

@cdumez @mfreed7 per web-platform-tests/wpt#27184 it seems there is some <object usemap> support in Chrome/Safari after all. Is there interest in cleaning this up or should we try to enshrine that somehow? I assume there is no interest in supporting image maps for the object element more generally.

Base automatically changed from master to main January 15, 2021 07:58
@mfreed7
Copy link
Contributor

mfreed7 commented Feb 26, 2021

As I just commented, I'm supportive of removing <object usemap> entirely. In Chromium, this does nothing other than make the element interactive. I'd be inclined to just land this change soon (we just branched a new version) and see if there are any bug reports.

chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Mar 1, 2021
This previously just made the <object> element interactive, but
no actual usemap-type behavior was implemented. See [1] and [2]
for the effort to remove <object usemap> from the spec.

If this CL causes a site bug, please make sure to file a bug
on crbug.com/new and cc me.

[1] whatwg/html#6283
[2] #27184

Fixed: 1182910
Change-Id: I0c7317300b38636cd1144ec776f680a5cd1d6b13
It does not appear to be implemented by Chrome or Safari.
@sideshowbarker sideshowbarker added the impacts documentation Used by documentation communities, such as MDN, to track changes that impact documentation label Mar 1, 2021
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Mar 1, 2021
This previously just made the <object> element interactive, but
no actual usemap-type behavior was implemented. See [1] and [2]
for the effort to remove <object usemap> from the spec.

If this CL causes a site bug, please make sure to file a bug
on crbug.com/new and cc me.

[1] whatwg/html#6283
[2] #27184

Fixed: 1182910
Change-Id: I0c7317300b38636cd1144ec776f680a5cd1d6b13
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Mar 1, 2021
This previously just made the <object> element interactive, but
no actual usemap-type behavior was implemented. See [1] and [2]
for the effort to remove <object usemap> from the spec.

If this CL causes a site bug, please make sure to file a bug
on crbug.com/new and cc me.

[1] whatwg/html#6283
[2] #27184

Fixed: 1182910
Change-Id: I0c7317300b38636cd1144ec776f680a5cd1d6b13
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2725443
Commit-Queue: Mason Freed <masonfreed@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Auto-Submit: Mason Freed <masonfreed@chromium.org>
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#858634}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Mar 1, 2021
This previously just made the <object> element interactive, but
no actual usemap-type behavior was implemented. See [1] and [2]
for the effort to remove <object usemap> from the spec.

If this CL causes a site bug, please make sure to file a bug
on crbug.com/new and cc me.

[1] whatwg/html#6283
[2] #27184

Fixed: 1182910
Change-Id: I0c7317300b38636cd1144ec776f680a5cd1d6b13
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2725443
Commit-Queue: Mason Freed <masonfreed@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Auto-Submit: Mason Freed <masonfreed@chromium.org>
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#858634}
pull bot pushed a commit to Alan-love/chromium that referenced this pull request Mar 1, 2021
This previously just made the <object> element interactive, but
no actual usemap-type behavior was implemented. See [1] and [2]
for the effort to remove <object usemap> from the spec.

If this CL causes a site bug, please make sure to file a bug
on crbug.com/new and cc me.

[1] whatwg/html#6283
[2] web-platform-tests/wpt#27184

Fixed: 1182910
Change-Id: I0c7317300b38636cd1144ec776f680a5cd1d6b13
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2725443
Commit-Queue: Mason Freed <masonfreed@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Auto-Submit: Mason Freed <masonfreed@chromium.org>
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#858634}
@annevk
Copy link
Member Author

annevk commented Mar 3, 2021

I filed #6434 on the difference between embed and object here. I'm okay with landing this, but I'm also happy to wait until Chrome declares it a success.

@domenic domenic merged commit 14ce057 into main Mar 3, 2021
@domenic domenic deleted the annevk/object-usemap branch March 3, 2021 15:55
@domenic domenic removed the do not merge yet Pull request must not be merged per rationale in comment label Mar 3, 2021
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Mar 15, 2021
… a=testonly

Automatic update from web-platform-tests
Remove "usemap" attribute from <object>

This previously just made the <object> element interactive, but
no actual usemap-type behavior was implemented. See [1] and [2]
for the effort to remove <object usemap> from the spec.

If this CL causes a site bug, please make sure to file a bug
on crbug.com/new and cc me.

[1] whatwg/html#6283
[2] web-platform-tests/wpt#27184

Fixed: 1182910
Change-Id: I0c7317300b38636cd1144ec776f680a5cd1d6b13
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2725443
Commit-Queue: Mason Freed <masonfreed@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Auto-Submit: Mason Freed <masonfreed@chromium.org>
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#858634}

--

wpt-commits: 92dd8581875d162e26c2951666e8eeeba828f4d6
wpt-pr: 27830
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Mar 15, 2021
… a=testonly

Automatic update from web-platform-tests
Remove "usemap" attribute from <object>

This previously just made the <object> element interactive, but
no actual usemap-type behavior was implemented. See [1] and [2]
for the effort to remove <object usemap> from the spec.

If this CL causes a site bug, please make sure to file a bug
on crbug.com/new and cc me.

[1] whatwg/html#6283
[2] web-platform-tests/wpt#27184

Fixed: 1182910
Change-Id: I0c7317300b38636cd1144ec776f680a5cd1d6b13
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2725443
Commit-Queue: Mason Freed <masonfreedchromium.org>
Commit-Queue: Joey Arhar <jarharchromium.org>
Auto-Submit: Mason Freed <masonfreedchromium.org>
Reviewed-by: Joey Arhar <jarharchromium.org>
Cr-Commit-Position: refs/heads/master{#858634}

--

wpt-commits: 92dd8581875d162e26c2951666e8eeeba828f4d6
wpt-pr: 27830

UltraBlame original commit: 84a3cceb690bc31a2578da467f20e17ea702d13a
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Mar 15, 2021
… a=testonly

Automatic update from web-platform-tests
Remove "usemap" attribute from <object>

This previously just made the <object> element interactive, but
no actual usemap-type behavior was implemented. See [1] and [2]
for the effort to remove <object usemap> from the spec.

If this CL causes a site bug, please make sure to file a bug
on crbug.com/new and cc me.

[1] whatwg/html#6283
[2] web-platform-tests/wpt#27184

Fixed: 1182910
Change-Id: I0c7317300b38636cd1144ec776f680a5cd1d6b13
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2725443
Commit-Queue: Mason Freed <masonfreedchromium.org>
Commit-Queue: Joey Arhar <jarharchromium.org>
Auto-Submit: Mason Freed <masonfreedchromium.org>
Reviewed-by: Joey Arhar <jarharchromium.org>
Cr-Commit-Position: refs/heads/master{#858634}

--

wpt-commits: 92dd8581875d162e26c2951666e8eeeba828f4d6
wpt-pr: 27830

UltraBlame original commit: 84a3cceb690bc31a2578da467f20e17ea702d13a
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Mar 15, 2021
… a=testonly

Automatic update from web-platform-tests
Remove "usemap" attribute from <object>

This previously just made the <object> element interactive, but
no actual usemap-type behavior was implemented. See [1] and [2]
for the effort to remove <object usemap> from the spec.

If this CL causes a site bug, please make sure to file a bug
on crbug.com/new and cc me.

[1] whatwg/html#6283
[2] web-platform-tests/wpt#27184

Fixed: 1182910
Change-Id: I0c7317300b38636cd1144ec776f680a5cd1d6b13
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2725443
Commit-Queue: Mason Freed <masonfreedchromium.org>
Commit-Queue: Joey Arhar <jarharchromium.org>
Auto-Submit: Mason Freed <masonfreedchromium.org>
Reviewed-by: Joey Arhar <jarharchromium.org>
Cr-Commit-Position: refs/heads/master{#858634}

--

wpt-commits: 92dd8581875d162e26c2951666e8eeeba828f4d6
wpt-pr: 27830

UltraBlame original commit: 84a3cceb690bc31a2578da467f20e17ea702d13a
webkit-commit-queue pushed a commit to WebKit/WebKit that referenced this pull request Nov 11, 2021
https://bugs.webkit.org/show_bug.cgi?id=222642

LayoutTests/imported/w3c:

Reviewed by Antti Koivisto.

As per whatwg/html#6283, <object usemap> should no longer be supported.

IDL support is kept per spec like other obsolete attributes.

* web-platform-tests/html/semantics/forms/the-label-element/clicking-noninteractive-unlabelable-content-expected.txt:

Source/WebCore:

Reviewed by Antti Koivisto.

As per whatwg/html#6283, <object usemap> should no longer be supported.

IDL support is kept per spec like other obsolete attributes.

* html/HTMLObjectElement.cpp:
(WebCore::HTMLObjectElement::isURLAttribute const):
(WebCore::HTMLObjectElement::addSubresourceAttributeURLs const):
(WebCore::HTMLObjectElement::isInteractiveContent const): Deleted.
* html/HTMLObjectElement.h:

Source/WebKit:

Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2021-11-11
Reviewed by Antti Koivisto.

Remove support for usemap attribute in GTK DOM API adding a warning message instead.

* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElement.cpp:
(webkit_dom_html_object_element_get_use_map):
(webkit_dom_html_object_element_set_use_map):

LayoutTests:

Reviewed by Antti Koivisto.

As per whatwg/html#6283, <object usemap> should no longer be supported.

IDL support is kept per spec like other obsolete attributes.

* imported/blink/fast/forms/label/label-contains-other-interactive-content-expected.txt:
* imported/blink/fast/forms/label/label-contains-other-interactive-content.html:


Canonical link: https://commits.webkit.org/244139@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@285638 268f45cc-cd09-0410-ab3c-d52691b4dbfc
annulen pushed a commit to qtwebkit/qtwebkit that referenced this pull request Nov 12, 2021
https://bugs.webkit.org/show_bug.cgi?id=222642

LayoutTests/imported/w3c:

Reviewed by Antti Koivisto.

As per whatwg/html#6283, <object usemap> should no longer be supported.

IDL support is kept per spec like other obsolete attributes.

* web-platform-tests/html/semantics/forms/the-label-element/clicking-noninteractive-unlabelable-content-expected.txt:

Source/WebCore:

Reviewed by Antti Koivisto.

As per whatwg/html#6283, <object usemap> should no longer be supported.

IDL support is kept per spec like other obsolete attributes.

* html/HTMLObjectElement.cpp:
(WebCore::HTMLObjectElement::isURLAttribute const):
(WebCore::HTMLObjectElement::addSubresourceAttributeURLs const):
(WebCore::HTMLObjectElement::isInteractiveContent const): Deleted.
* html/HTMLObjectElement.h:

Source/WebKit:

Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2021-11-11
Reviewed by Antti Koivisto.

Remove support for usemap attribute in GTK DOM API adding a warning message instead.

* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElement.cpp:
(webkit_dom_html_object_element_get_use_map):
(webkit_dom_html_object_element_set_use_map):

LayoutTests:

Reviewed by Antti Koivisto.

As per whatwg/html#6283, <object usemap> should no longer be supported.

IDL support is kept per spec like other obsolete attributes.

* imported/blink/fast/forms/label/label-contains-other-interactive-content-expected.txt:
* imported/blink/fast/forms/label/label-contains-other-interactive-content.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@285638 268f45cc-cd09-0410-ab3c-d52691b4dbfc
mjfroman pushed a commit to mjfroman/moz-libwebrtc-third-party that referenced this pull request Oct 14, 2022
This previously just made the <object> element interactive, but
no actual usemap-type behavior was implemented. See [1] and [2]
for the effort to remove <object usemap> from the spec.

If this CL causes a site bug, please make sure to file a bug
on crbug.com/new and cc me.

[1] whatwg/html#6283
[2] web-platform-tests/wpt#27184

Fixed: 1182910
Change-Id: I0c7317300b38636cd1144ec776f680a5cd1d6b13
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2725443
Commit-Queue: Mason Freed <masonfreed@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Auto-Submit: Mason Freed <masonfreed@chromium.org>
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#858634}
GitOrigin-RevId: 1d81c3837a4d38837f66fbeb5ace831ddbac3443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impacts documentation Used by documentation communities, such as MDN, to track changes that impact documentation removal/deprecation Removing or deprecating a feature topic: embed and object
Development

Successfully merging this pull request may close these issues.

4 participants