-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Add onslotchange #4129
Add onslotchange #4129
Conversation
Tests: ... Fixes #3487.
…doesn't really have a suitable dfn
<tr> | ||
<th id="ix-handler-onslotchange"> <code data-x="">onslotchange</code> | ||
<td> <span data-x="handler-onslotchange">HTML elements</span> | ||
<td> <code data-x="">slotchange</code> event handler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It really seems like some spec should define this. Is the plan for DOM to do so? Should we wait on that before merging this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah maybe? I'm not entirely clear on the purpose of this. Note that it's an index, a rather strange place for a dfn
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it mostly just gives a centralized place for everything to link to. I agree it's not quite a definition in the usual sense, but, it still seems good to have.
If there's a definition in DOM I think it could use a different format, not the HTML one. But one should probably exist; it feels weird otherwise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It really seems like some spec should define this. Is the plan for DOM to do so? Should we wait on that before merging this?
Yeah maybe? I'm not entirely clear on the purpose of this. Note that it's an index, a rather strange place for a
dfn
.I think it mostly just gives a centralized place for everything to link to.
Right. Along with links among specs, it also gives MDN docs something to link to
I agree it's not quite a definition in the usual sense, but, it still seems good to have.
Yeah. Though I guess an alternative would just to rely on an ID on the element
This will automatically be tested by https://github.com/web-platform-tests/wpt/blob/master/html/webappapis/scripting/events/event-handler-all-global-events.html and https://github.com/web-platform-tests/wpt/blob/master/html/webappapis/scripting/events/resources/event-handler-body.js once the IDL lands in the spec. So, this is ready to go from my perspective. (I put back the definition of the event which was previously discussed.) I will approve, but @annevk, can you confirm you are OK with putting the event definition back? |
Seems okay. I guess DOM should also be updated to point to this once this lands. We probably also need implementation bugs right? |
The original issue also talked about |
That still seems reasonable, I think? |
This introduces it to ShadowRoot in addition to GlobalEventHandlers, as a counterpart to whatwg/html#4129. Closes whatwg/html#3487.
This introduces it to ShadowRoot in addition to GlobalEventHandlers, as a counterpart to whatwg/html#4129. Closes whatwg/html#3487.
This introduces it to ShadowRoot in addition to GlobalEventHandlers, as a counterpart to whatwg/html#4129. Closes whatwg/html#3487.
https://bugs.webkit.org/show_bug.cgi?id=191310 Patch by Tetsuharu Ohzeki <tetsuharu.ohzeki@gmail.com> on 2020-10-03 Reviewed by Sam Weinig. LayoutTests/imported/w3c: Rebaselined tests to pass more test cases. * web-platform-tests/dom/idlharness.window-expected.txt: * web-platform-tests/html/webappapis/scripting/events/event-handler-all-global-events-expected.txt: * web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt: * web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-windowless-body-expected.txt: * web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt: Source/WebCore: `onslotchange` attribute has been added to `ShadowRoot` and `GlobalEventHandlers` by whatwg/html#3487 - whatwg/dom#78 - whatwg/html#4129 This patch supports it. Tests: imported/w3c/web-platform-tests/dom/idlharness.window.html: imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-all-global-events.html imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window.html imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-windowless-body.html imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative.html * dom/GlobalEventHandlers.idl: * dom/ShadowRoot.idl: * html/HTMLAttributeNames.in: * html/HTMLElement.cpp: (WebCore::HTMLElement::createEventHandlerNameMap): LayoutTests: Rebaselined tests to pass more test cases. * platform/glib/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt: * platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: * platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: * platform/ios-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt: * platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: * platform/mac-wk1/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt: * platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: * platform/mac-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt: * platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@267939 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reflects following spec changes: - whatwg/html#4129 - whatwg/dom#785 Those new spec addition is already implemented in Safari and Chromium is working on it. Differential Revision: https://phabricator.services.mozilla.com/D123775
Reflects following spec changes: - whatwg/html#4129 - whatwg/dom#785 Those new spec addition is already implemented in Safari and Chromium is working on it. Differential Revision: https://phabricator.services.mozilla.com/D123775
`onslotchange` IDL attribute is supported by interfaces: - GlobalEventHandlers [1] - ShadowRoot [2] Reflects following spec changes: - whatwg/html#4129 - whatwg/dom#785 Those new spec addition is already implemented in Safari and Gecko[3]. Intent to Ship mail with 3 approvals: [4] [1] https://html.spec.whatwg.org/#globaleventhandlers [2] https://dom.spec.whatwg.org/#interface-shadowroot [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1501983 [4] https://groups.google.com/a/chromium.org/g/blink-dev/c/cagoIboJ6Oo/m/roPoRAEDBAAJ R=fwang@igalia.com, rego@igalia.com Bug: 1006096 Change-Id: I3d0d7eb437aba3e40d24cca9bcf31d1db701f970 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3096889 Commit-Queue: SONIA SINGLA <ssingla@igalia.com> Reviewed-by: Mason Freed <masonf@chromium.org> Reviewed-by: Manuel Rego <rego@igalia.com> Reviewed-by: Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/main@{#931541}
`onslotchange` IDL attribute is supported by interfaces: - GlobalEventHandlers [1] - ShadowRoot [2] Reflects following spec changes: - whatwg/html#4129 - whatwg/dom#785 Those new spec addition is already implemented in Safari and Gecko[3]. Intent to Ship mail with 3 approvals: [4] [1] https://html.spec.whatwg.org/#globaleventhandlers [2] https://dom.spec.whatwg.org/#interface-shadowroot [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1501983 [4] https://groups.google.com/a/chromium.org/g/blink-dev/c/cagoIboJ6Oo/m/roPoRAEDBAAJ R=fwang@igalia.com, rego@igalia.com Bug: 1006096 Change-Id: I3d0d7eb437aba3e40d24cca9bcf31d1db701f970 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3096889 Commit-Queue: SONIA SINGLA <ssingla@igalia.com> Reviewed-by: Mason Freed <masonf@chromium.org> Reviewed-by: Manuel Rego <rego@igalia.com> Reviewed-by: Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/main@{#931541} NOKEYCHECK=True GitOrigin-RevId: ec5cf31361e9822ad4c8999dcb34aa1bcca2907a
Tests: ...
Fixes #3487.
/dom.html ( diff )
/indices.html ( diff )
/webappapis.html ( diff )