-
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 #3487
Comments
Why don't we just add it to |
We could do that too. We don't really have a good principle for when to put things on |
Whoa totally forgot about My 2 Satoshi. 😎 |
Also @annevk on second thought, perhaps can think about what IS the principle for "putting something on Personally curious as we use Just when I thought there wouldn't be anything touched on Thanks in advance! 🙏 |
Conclusion: add it on |
I would prefer having it on |
cc @whatwg/documentation |
Documentation need recorded on MDN content roadmap at https://trello.com/c/OrG1iEf2/127-shadow-dom-api |
Fixes part of #3487; what remains is to add it to ShadowRoot.
This introduces it to ShadowRoot in addition to GlobalEventHandlers, as a counterpart to whatwg/html#4129. Closes whatwg/html#3487.
Reopening until we add it to ShadowRoot too |
This introduces it to ShadowRoot in addition to GlobalEventHandlers, as a counterpart to whatwg/html#4129. Closes whatwg/html#3487.
Fixes part of #3487; what remains is to add it to ShadowRoot.
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
Since
slotchange
bubbles and is fired onslot
elements, it seems somewhat reasonable to add anonslotchange
event handler. Since it's only useful inside shadow trees, it probably makes the most sense to add it toHTMLElement
andShadowRoot
? Though maybeSVGElement
as well?Thoughts @whatwg/components?
The text was updated successfully, but these errors were encountered: