From 330391dead8670983ccdec2748a8de5f469431a7 Mon Sep 17 00:00:00 2001 From: "commit-queue@webkit.org" Date: Sun, 4 Oct 2020 00:34:54 +0000 Subject: [PATCH] Add onslotchange on ShadowRoot and GlobalEventHandlers https://bugs.webkit.org/show_bug.cgi?id=191310 Patch by Tetsuharu Ohzeki 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 https://github.com/whatwg/html/issues/3487 - https://github.com/whatwg/dom/pull/78 - https://github.com/whatwg/html/pull/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 --- LayoutTests/ChangeLog | 19 +++++++++++++ LayoutTests/imported/w3c/ChangeLog | 15 +++++++++++ .../dom/idlharness.window-expected.txt | 2 +- ...ent-handler-all-global-events-expected.txt | 8 +++--- ...andler-attributes-body-window-expected.txt | 6 ++--- ...er-attributes-windowless-body-expected.txt | 4 +-- ...obal-event-handlers.tentative-expected.txt | 10 +++---- ...obal-event-handlers.tentative-expected.txt | 10 +++---- .../html/dom/idlharness.https-expected.txt | 18 ++++++------- .../html/dom/idlharness.https-expected.txt | 18 ++++++------- ...obal-event-handlers.tentative-expected.txt | 10 +++---- .../html/dom/idlharness.https-expected.txt | 18 ++++++------- ...obal-event-handlers.tentative-expected.txt | 10 +++---- .../html/dom/idlharness.https-expected.txt | 18 ++++++------- ...obal-event-handlers.tentative-expected.txt | 10 +++---- .../html/dom/idlharness.https-expected.txt | 18 ++++++------- Source/WebCore/ChangeLog | 27 +++++++++++++++++++ Source/WebCore/dom/GlobalEventHandlers.idl | 3 +-- Source/WebCore/dom/ShadowRoot.idl | 3 +-- Source/WebCore/html/HTMLAttributeNames.in | 1 + Source/WebCore/html/HTMLElement.cpp | 1 + 21 files changed, 145 insertions(+), 84 deletions(-) diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog index 0e019f48fd21b..8709811a8e89f 100644 --- a/LayoutTests/ChangeLog +++ b/LayoutTests/ChangeLog @@ -1,3 +1,22 @@ +2020-10-03 Tetsuharu Ohzeki + + Add onslotchange on ShadowRoot and GlobalEventHandlers + https://bugs.webkit.org/show_bug.cgi?id=191310 + + Reviewed by Sam Weinig. + + 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: + 2020-10-03 Antoine Quint Add non-animated support for the CSS translate property diff --git a/LayoutTests/imported/w3c/ChangeLog b/LayoutTests/imported/w3c/ChangeLog index afd28a0697e62..435cb6a121ffa 100644 --- a/LayoutTests/imported/w3c/ChangeLog +++ b/LayoutTests/imported/w3c/ChangeLog @@ -1,3 +1,18 @@ +2020-10-03 Tetsuharu Ohzeki + + Add onslotchange on ShadowRoot and GlobalEventHandlers + https://bugs.webkit.org/show_bug.cgi?id=191310 + + Reviewed by Sam Weinig. + + 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: + 2020-10-03 Antoine Quint Add non-animated support for the CSS translate property diff --git a/LayoutTests/imported/w3c/web-platform-tests/dom/idlharness.window-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/dom/idlharness.window-expected.txt index 83f805f23a6ae..26de2e8998040 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/dom/idlharness.window-expected.txt +++ b/LayoutTests/imported/w3c/web-platform-tests/dom/idlharness.window-expected.txt @@ -865,7 +865,7 @@ PASS ShadowRoot interface: existence and properties of interface prototype objec PASS ShadowRoot interface: existence and properties of interface prototype object's @@unscopables property PASS ShadowRoot interface: attribute mode PASS ShadowRoot interface: attribute host -FAIL ShadowRoot interface: attribute onslotchange assert_true: The prototype object must have a property "onslotchange" expected true got false +PASS ShadowRoot interface: attribute onslotchange PASS Element interface: existence and properties of interface object PASS Element interface object length PASS Element interface object name diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-all-global-events-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-all-global-events-expected.txt index 07f9e97747533..f3f3eab865b96 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-all-global-events-expected.txt +++ b/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-all-global-events-expected.txt @@ -264,10 +264,10 @@ PASS onselect: the default value must be null PASS onselect: the content attribute must be compiled into a function as the corresponding property PASS onselect: the content attribute must execute when an event is dispatched PASS onselect: dispatching an Event at a element must trigger element.onselect -FAIL onslotchange: must be on the appropriate locations for GlobalEventHandlers assert_true: Window has an own property named "onslotchange" expected true got false -FAIL onslotchange: the default value must be null assert_equals: The default value of the property is null for a Window instance expected (object) null but got (undefined) undefined -FAIL onslotchange: the content attribute must be compiled into a function as the corresponding property assert_equals: The onslotchange property must be a function expected "function" but got "undefined" -FAIL onslotchange: the content attribute must execute when an event is dispatched assert_true: Dispatching an event must run the code expected true got undefined +PASS onslotchange: must be on the appropriate locations for GlobalEventHandlers +PASS onslotchange: the default value must be null +PASS onslotchange: the content attribute must be compiled into a function as the corresponding property +PASS onslotchange: the content attribute must execute when an event is dispatched PASS onslotchange: dispatching an Event at a element must trigger element.onslotchange PASS onstalled: must be on the appropriate locations for GlobalEventHandlers PASS onstalled: the default value must be null diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt index 495b7ff7d026d..9f8255f2a84fd 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt +++ b/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt @@ -69,7 +69,7 @@ FAIL not shadowed securitypolicyviolation (document.body) assert_equals: alterna PASS not shadowed seeked (document.body) PASS not shadowed seeking (document.body) PASS not shadowed select (document.body) -FAIL not shadowed slotchange (document.body) assert_equals: alternative body should reflect expected (object) null but got (undefined) undefined +PASS not shadowed slotchange (document.body) PASS not shadowed stalled (document.body) PASS not shadowed submit (document.body) PASS not shadowed suspend (document.body) @@ -177,7 +177,7 @@ FAIL not shadowed securitypolicyviolation (document.createElement("body")) asser PASS not shadowed seeked (document.createElement("body")) PASS not shadowed seeking (document.createElement("body")) PASS not shadowed select (document.createElement("body")) -FAIL not shadowed slotchange (document.createElement("body")) assert_equals: body should reflect expected (object) null but got (undefined) undefined +PASS not shadowed slotchange (document.createElement("body")) PASS not shadowed stalled (document.createElement("body")) PASS not shadowed submit (document.createElement("body")) PASS not shadowed suspend (document.createElement("body")) @@ -285,7 +285,7 @@ FAIL not shadowed securitypolicyviolation (window) assert_equals: body should re PASS not shadowed seeked (window) PASS not shadowed seeking (window) PASS not shadowed select (window) -FAIL not shadowed slotchange (window) assert_equals: body should reflect expected (object) null but got (undefined) undefined +PASS not shadowed slotchange (window) PASS not shadowed stalled (window) PASS not shadowed submit (window) PASS not shadowed suspend (window) diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-windowless-body-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-windowless-body-expected.txt index 9e075767b9031..ee509737ffd0b 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-windowless-body-expected.txt +++ b/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-windowless-body-expected.txt @@ -91,7 +91,7 @@ FAIL securitypolicyviolation is unaffected on a windowless body assert_equals: e PASS seeked is unaffected on a windowless body PASS seeking is unaffected on a windowless body PASS select is unaffected on a windowless body -FAIL slotchange is unaffected on a windowless body assert_equals: expected (object) null but got (undefined) undefined +PASS slotchange is unaffected on a windowless body PASS stalled is unaffected on a windowless body PASS submit is unaffected on a windowless body PASS suspend is unaffected on a windowless body @@ -199,7 +199,7 @@ FAIL securitypolicyviolation is unaffected on a windowless frameset assert_equal PASS seeked is unaffected on a windowless frameset PASS seeking is unaffected on a windowless frameset PASS select is unaffected on a windowless frameset -FAIL slotchange is unaffected on a windowless frameset assert_equals: expected (object) null but got (undefined) undefined +PASS slotchange is unaffected on a windowless frameset PASS stalled is unaffected on a windowless frameset PASS submit is unaffected on a windowless frameset PASS suspend is unaffected on a windowless frameset diff --git a/LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt index 604b411976689..09f7449c47933 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt +++ b/LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt @@ -264,11 +264,11 @@ PASS onselect: the default value must be null PASS onselect: the content attribute must be compiled into a function as the corresponding property PASS onselect: dynamic changes on the attribute PASS onselect: dispatching an Event at a element must trigger element.onselect -FAIL onslotchange: must be on the appropriate locations for GlobalEventHandlers assert_true: MathMLElement has an own property named "onslotchange" expected true got false -FAIL onslotchange: the default value must be null assert_equals: The default value of the property is null for a MathMLMathElement instance expected (object) null but got (undefined) undefined -FAIL onslotchange: the content attribute must be compiled into a function as the corresponding property assert_equals: The onslotchange property must be a function expected "function" but got "undefined" -FAIL onslotchange: dynamic changes on the attribute assert_equals: The onslotchange property must be null (no attribute) expected (object) null but got (undefined) undefined -FAIL onslotchange: dispatching an Event at a element must trigger element.onslotchange assert_equals: The event must be fired at the element expected (object) Element node but got (undefined) undefined +PASS onslotchange: must be on the appropriate locations for GlobalEventHandlers +PASS onslotchange: the default value must be null +PASS onslotchange: the content attribute must be compiled into a function as the corresponding property +PASS onslotchange: dynamic changes on the attribute +PASS onslotchange: dispatching an Event at a element must trigger element.onslotchange PASS onstalled: must be on the appropriate locations for GlobalEventHandlers PASS onstalled: the default value must be null PASS onstalled: the content attribute must be compiled into a function as the corresponding property diff --git a/LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt b/LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt index 5be542b6eda3b..10513a316c875 100644 --- a/LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt +++ b/LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt @@ -264,11 +264,11 @@ PASS onselect: the default value must be null PASS onselect: the content attribute must be compiled into a function as the corresponding property PASS onselect: dynamic changes on the attribute PASS onselect: dispatching an Event at a element must trigger element.onselect -FAIL onslotchange: must be on the appropriate locations for GlobalEventHandlers assert_true: MathMLElement has an own property named "onslotchange" expected true got false -FAIL onslotchange: the default value must be null assert_equals: The default value of the property is null for a MathMLMathElement instance expected (object) null but got (undefined) undefined -FAIL onslotchange: the content attribute must be compiled into a function as the corresponding property assert_equals: The onslotchange property must be a function expected "function" but got "undefined" -FAIL onslotchange: dynamic changes on the attribute assert_equals: The onslotchange property must be null (no attribute) expected (object) null but got (undefined) undefined -FAIL onslotchange: dispatching an Event at a element must trigger element.onslotchange assert_equals: The event must be fired at the element expected (object) Element node but got (undefined) undefined +PASS onslotchange: must be on the appropriate locations for GlobalEventHandlers +PASS onslotchange: the default value must be null +PASS onslotchange: the content attribute must be compiled into a function as the corresponding property +PASS onslotchange: dynamic changes on the attribute +PASS onslotchange: dispatching an Event at a element must trigger element.onslotchange PASS onstalled: must be on the appropriate locations for GlobalEventHandlers PASS onstalled: the default value must be null PASS onstalled: the content attribute must be compiled into a function as the corresponding property diff --git a/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt b/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt index 0ce709603c282..525c2c533a23b 100644 --- a/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt +++ b/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt @@ -310,7 +310,7 @@ FAIL HTMLElement interface: attribute onsecuritypolicyviolation assert_true: The PASS HTMLElement interface: attribute onseeked PASS HTMLElement interface: attribute onseeking PASS HTMLElement interface: attribute onselect -FAIL HTMLElement interface: attribute onslotchange assert_true: The prototype object must have a property "onslotchange" expected true got false +PASS HTMLElement interface: attribute onslotchange PASS HTMLElement interface: attribute onstalled PASS HTMLElement interface: attribute onsubmit PASS HTMLElement interface: attribute onsuspend @@ -405,7 +405,7 @@ FAIL HTMLElement interface: document.createElement("noscript") must inherit prop PASS HTMLElement interface: document.createElement("noscript") must inherit property "onseeked" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onseeking" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onselect" with the proper type -FAIL HTMLElement interface: document.createElement("noscript") must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" not found in prototype chain +PASS HTMLElement interface: document.createElement("noscript") must inherit property "onslotchange" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onstalled" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onsubmit" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onsuspend" with the proper type @@ -4391,7 +4391,7 @@ FAIL Window interface: attribute onsecuritypolicyviolation assert_own_property: PASS Window interface: attribute onseeked PASS Window interface: attribute onseeking PASS Window interface: attribute onselect -FAIL Window interface: attribute onslotchange assert_own_property: The global object must have a property "onslotchange" expected property "onslotchange" missing +PASS Window interface: attribute onslotchange PASS Window interface: attribute onstalled PASS Window interface: attribute onsubmit PASS Window interface: attribute onsuspend @@ -4540,7 +4540,7 @@ FAIL Window interface: window must inherit property "onsecuritypolicyviolation" PASS Window interface: window must inherit property "onseeked" with the proper type PASS Window interface: window must inherit property "onseeking" with the proper type PASS Window interface: window must inherit property "onselect" with the proper type -FAIL Window interface: window must inherit property "onslotchange" with the proper type assert_own_property: expected property "onslotchange" missing +PASS Window interface: window must inherit property "onslotchange" with the proper type PASS Window interface: window must inherit property "onstalled" with the proper type PASS Window interface: window must inherit property "onsubmit" with the proper type PASS Window interface: window must inherit property "onsuspend" with the proper type @@ -5257,7 +5257,7 @@ FAIL SVGElement interface: attribute onsecuritypolicyviolation assert_true: The PASS SVGElement interface: attribute onseeked PASS SVGElement interface: attribute onseeking PASS SVGElement interface: attribute onselect -FAIL SVGElement interface: attribute onslotchange assert_true: The prototype object must have a property "onslotchange" expected true got false +PASS SVGElement interface: attribute onslotchange PASS SVGElement interface: attribute onstalled PASS SVGElement interface: attribute onsubmit PASS SVGElement interface: attribute onsuspend @@ -5394,7 +5394,7 @@ FAIL Document interface: attribute onsecuritypolicyviolation assert_true: The pr PASS Document interface: attribute onseeked PASS Document interface: attribute onseeking PASS Document interface: attribute onselect -FAIL Document interface: attribute onslotchange assert_true: The prototype object must have a property "onslotchange" expected true got false +PASS Document interface: attribute onslotchange PASS Document interface: attribute onstalled PASS Document interface: attribute onsubmit PASS Document interface: attribute onsuspend @@ -5520,7 +5520,7 @@ FAIL Document interface: iframe.contentDocument must inherit property "onsecurit PASS Document interface: iframe.contentDocument must inherit property "onseeked" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onseeking" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onselect" with the proper type -FAIL Document interface: iframe.contentDocument must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" not found in prototype chain +PASS Document interface: iframe.contentDocument must inherit property "onslotchange" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onstalled" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onsubmit" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onsuspend" with the proper type @@ -5646,7 +5646,7 @@ FAIL Document interface: new Document() must inherit property "onsecuritypolicyv PASS Document interface: new Document() must inherit property "onseeked" with the proper type PASS Document interface: new Document() must inherit property "onseeking" with the proper type PASS Document interface: new Document() must inherit property "onselect" with the proper type -FAIL Document interface: new Document() must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" not found in prototype chain +PASS Document interface: new Document() must inherit property "onslotchange" with the proper type PASS Document interface: new Document() must inherit property "onstalled" with the proper type PASS Document interface: new Document() must inherit property "onsubmit" with the proper type PASS Document interface: new Document() must inherit property "onsuspend" with the proper type @@ -5772,7 +5772,7 @@ FAIL Document interface: documentWithHandlers must inherit property "onsecurityp PASS Document interface: documentWithHandlers must inherit property "onseeked" with the proper type PASS Document interface: documentWithHandlers must inherit property "onseeking" with the proper type PASS Document interface: documentWithHandlers must inherit property "onselect" with the proper type -FAIL Document interface: documentWithHandlers must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" found on object expected in prototype chain +PASS Document interface: documentWithHandlers must inherit property "onslotchange" with the proper type PASS Document interface: documentWithHandlers must inherit property "onstalled" with the proper type PASS Document interface: documentWithHandlers must inherit property "onsubmit" with the proper type PASS Document interface: documentWithHandlers must inherit property "onsuspend" with the proper type diff --git a/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt b/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt index 62a851d64ee04..7d2dc6a5c6b55 100644 --- a/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt +++ b/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt @@ -310,7 +310,7 @@ FAIL HTMLElement interface: attribute onsecuritypolicyviolation assert_true: The PASS HTMLElement interface: attribute onseeked PASS HTMLElement interface: attribute onseeking PASS HTMLElement interface: attribute onselect -FAIL HTMLElement interface: attribute onslotchange assert_true: The prototype object must have a property "onslotchange" expected true got false +PASS HTMLElement interface: attribute onslotchange PASS HTMLElement interface: attribute onstalled PASS HTMLElement interface: attribute onsubmit PASS HTMLElement interface: attribute onsuspend @@ -405,7 +405,7 @@ FAIL HTMLElement interface: document.createElement("noscript") must inherit prop PASS HTMLElement interface: document.createElement("noscript") must inherit property "onseeked" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onseeking" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onselect" with the proper type -FAIL HTMLElement interface: document.createElement("noscript") must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" not found in prototype chain +PASS HTMLElement interface: document.createElement("noscript") must inherit property "onslotchange" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onstalled" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onsubmit" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onsuspend" with the proper type @@ -4381,7 +4381,7 @@ FAIL Window interface: attribute onsecuritypolicyviolation assert_own_property: PASS Window interface: attribute onseeked PASS Window interface: attribute onseeking PASS Window interface: attribute onselect -FAIL Window interface: attribute onslotchange assert_own_property: The global object must have a property "onslotchange" expected property "onslotchange" missing +PASS Window interface: attribute onslotchange PASS Window interface: attribute onstalled PASS Window interface: attribute onsubmit PASS Window interface: attribute onsuspend @@ -4530,7 +4530,7 @@ FAIL Window interface: window must inherit property "onsecuritypolicyviolation" PASS Window interface: window must inherit property "onseeked" with the proper type PASS Window interface: window must inherit property "onseeking" with the proper type PASS Window interface: window must inherit property "onselect" with the proper type -FAIL Window interface: window must inherit property "onslotchange" with the proper type assert_own_property: expected property "onslotchange" missing +PASS Window interface: window must inherit property "onslotchange" with the proper type PASS Window interface: window must inherit property "onstalled" with the proper type PASS Window interface: window must inherit property "onsubmit" with the proper type PASS Window interface: window must inherit property "onsuspend" with the proper type @@ -5247,7 +5247,7 @@ FAIL SVGElement interface: attribute onsecuritypolicyviolation assert_true: The PASS SVGElement interface: attribute onseeked PASS SVGElement interface: attribute onseeking PASS SVGElement interface: attribute onselect -FAIL SVGElement interface: attribute onslotchange assert_true: The prototype object must have a property "onslotchange" expected true got false +PASS SVGElement interface: attribute onslotchange PASS SVGElement interface: attribute onstalled PASS SVGElement interface: attribute onsubmit PASS SVGElement interface: attribute onsuspend @@ -5384,7 +5384,7 @@ FAIL Document interface: attribute onsecuritypolicyviolation assert_true: The pr PASS Document interface: attribute onseeked PASS Document interface: attribute onseeking PASS Document interface: attribute onselect -FAIL Document interface: attribute onslotchange assert_true: The prototype object must have a property "onslotchange" expected true got false +PASS Document interface: attribute onslotchange PASS Document interface: attribute onstalled PASS Document interface: attribute onsubmit PASS Document interface: attribute onsuspend @@ -5510,7 +5510,7 @@ FAIL Document interface: iframe.contentDocument must inherit property "onsecurit PASS Document interface: iframe.contentDocument must inherit property "onseeked" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onseeking" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onselect" with the proper type -FAIL Document interface: iframe.contentDocument must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" not found in prototype chain +PASS Document interface: iframe.contentDocument must inherit property "onslotchange" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onstalled" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onsubmit" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onsuspend" with the proper type @@ -5636,7 +5636,7 @@ FAIL Document interface: new Document() must inherit property "onsecuritypolicyv PASS Document interface: new Document() must inherit property "onseeked" with the proper type PASS Document interface: new Document() must inherit property "onseeking" with the proper type PASS Document interface: new Document() must inherit property "onselect" with the proper type -FAIL Document interface: new Document() must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" not found in prototype chain +PASS Document interface: new Document() must inherit property "onslotchange" with the proper type PASS Document interface: new Document() must inherit property "onstalled" with the proper type PASS Document interface: new Document() must inherit property "onsubmit" with the proper type PASS Document interface: new Document() must inherit property "onsuspend" with the proper type @@ -5762,7 +5762,7 @@ FAIL Document interface: documentWithHandlers must inherit property "onsecurityp PASS Document interface: documentWithHandlers must inherit property "onseeked" with the proper type PASS Document interface: documentWithHandlers must inherit property "onseeking" with the proper type PASS Document interface: documentWithHandlers must inherit property "onselect" with the proper type -FAIL Document interface: documentWithHandlers must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" found on object expected in prototype chain +PASS Document interface: documentWithHandlers must inherit property "onslotchange" with the proper type PASS Document interface: documentWithHandlers must inherit property "onstalled" with the proper type PASS Document interface: documentWithHandlers must inherit property "onsubmit" with the proper type PASS Document interface: documentWithHandlers must inherit property "onsuspend" with the proper type diff --git a/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt b/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt index 5be542b6eda3b..10513a316c875 100644 --- a/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt +++ b/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt @@ -264,11 +264,11 @@ PASS onselect: the default value must be null PASS onselect: the content attribute must be compiled into a function as the corresponding property PASS onselect: dynamic changes on the attribute PASS onselect: dispatching an Event at a element must trigger element.onselect -FAIL onslotchange: must be on the appropriate locations for GlobalEventHandlers assert_true: MathMLElement has an own property named "onslotchange" expected true got false -FAIL onslotchange: the default value must be null assert_equals: The default value of the property is null for a MathMLMathElement instance expected (object) null but got (undefined) undefined -FAIL onslotchange: the content attribute must be compiled into a function as the corresponding property assert_equals: The onslotchange property must be a function expected "function" but got "undefined" -FAIL onslotchange: dynamic changes on the attribute assert_equals: The onslotchange property must be null (no attribute) expected (object) null but got (undefined) undefined -FAIL onslotchange: dispatching an Event at a element must trigger element.onslotchange assert_equals: The event must be fired at the element expected (object) Element node but got (undefined) undefined +PASS onslotchange: must be on the appropriate locations for GlobalEventHandlers +PASS onslotchange: the default value must be null +PASS onslotchange: the content attribute must be compiled into a function as the corresponding property +PASS onslotchange: dynamic changes on the attribute +PASS onslotchange: dispatching an Event at a element must trigger element.onslotchange PASS onstalled: must be on the appropriate locations for GlobalEventHandlers PASS onstalled: the default value must be null PASS onstalled: the content attribute must be compiled into a function as the corresponding property diff --git a/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt b/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt index 4732ca024128b..f71f6d290b67e 100644 --- a/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt +++ b/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt @@ -310,7 +310,7 @@ FAIL HTMLElement interface: attribute onsecuritypolicyviolation assert_true: The PASS HTMLElement interface: attribute onseeked PASS HTMLElement interface: attribute onseeking PASS HTMLElement interface: attribute onselect -FAIL HTMLElement interface: attribute onslotchange assert_true: The prototype object must have a property "onslotchange" expected true got false +PASS HTMLElement interface: attribute onslotchange PASS HTMLElement interface: attribute onstalled PASS HTMLElement interface: attribute onsubmit PASS HTMLElement interface: attribute onsuspend @@ -405,7 +405,7 @@ FAIL HTMLElement interface: document.createElement("noscript") must inherit prop PASS HTMLElement interface: document.createElement("noscript") must inherit property "onseeked" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onseeking" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onselect" with the proper type -FAIL HTMLElement interface: document.createElement("noscript") must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" not found in prototype chain +PASS HTMLElement interface: document.createElement("noscript") must inherit property "onslotchange" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onstalled" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onsubmit" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onsuspend" with the proper type @@ -4391,7 +4391,7 @@ FAIL Window interface: attribute onsecuritypolicyviolation assert_own_property: PASS Window interface: attribute onseeked PASS Window interface: attribute onseeking PASS Window interface: attribute onselect -FAIL Window interface: attribute onslotchange assert_own_property: The global object must have a property "onslotchange" expected property "onslotchange" missing +PASS Window interface: attribute onslotchange PASS Window interface: attribute onstalled PASS Window interface: attribute onsubmit PASS Window interface: attribute onsuspend @@ -4540,7 +4540,7 @@ FAIL Window interface: window must inherit property "onsecuritypolicyviolation" PASS Window interface: window must inherit property "onseeked" with the proper type PASS Window interface: window must inherit property "onseeking" with the proper type PASS Window interface: window must inherit property "onselect" with the proper type -FAIL Window interface: window must inherit property "onslotchange" with the proper type assert_own_property: expected property "onslotchange" missing +PASS Window interface: window must inherit property "onslotchange" with the proper type PASS Window interface: window must inherit property "onstalled" with the proper type PASS Window interface: window must inherit property "onsubmit" with the proper type PASS Window interface: window must inherit property "onsuspend" with the proper type @@ -5257,7 +5257,7 @@ FAIL SVGElement interface: attribute onsecuritypolicyviolation assert_true: The PASS SVGElement interface: attribute onseeked PASS SVGElement interface: attribute onseeking PASS SVGElement interface: attribute onselect -FAIL SVGElement interface: attribute onslotchange assert_true: The prototype object must have a property "onslotchange" expected true got false +PASS SVGElement interface: attribute onslotchange PASS SVGElement interface: attribute onstalled PASS SVGElement interface: attribute onsubmit PASS SVGElement interface: attribute onsuspend @@ -5394,7 +5394,7 @@ FAIL Document interface: attribute onsecuritypolicyviolation assert_true: The pr PASS Document interface: attribute onseeked PASS Document interface: attribute onseeking PASS Document interface: attribute onselect -FAIL Document interface: attribute onslotchange assert_true: The prototype object must have a property "onslotchange" expected true got false +PASS Document interface: attribute onslotchange PASS Document interface: attribute onstalled PASS Document interface: attribute onsubmit PASS Document interface: attribute onsuspend @@ -5520,7 +5520,7 @@ FAIL Document interface: iframe.contentDocument must inherit property "onsecurit PASS Document interface: iframe.contentDocument must inherit property "onseeked" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onseeking" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onselect" with the proper type -FAIL Document interface: iframe.contentDocument must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" not found in prototype chain +PASS Document interface: iframe.contentDocument must inherit property "onslotchange" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onstalled" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onsubmit" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onsuspend" with the proper type @@ -5646,7 +5646,7 @@ FAIL Document interface: new Document() must inherit property "onsecuritypolicyv PASS Document interface: new Document() must inherit property "onseeked" with the proper type PASS Document interface: new Document() must inherit property "onseeking" with the proper type PASS Document interface: new Document() must inherit property "onselect" with the proper type -FAIL Document interface: new Document() must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" not found in prototype chain +PASS Document interface: new Document() must inherit property "onslotchange" with the proper type PASS Document interface: new Document() must inherit property "onstalled" with the proper type PASS Document interface: new Document() must inherit property "onsubmit" with the proper type PASS Document interface: new Document() must inherit property "onsuspend" with the proper type @@ -5772,7 +5772,7 @@ FAIL Document interface: documentWithHandlers must inherit property "onsecurityp PASS Document interface: documentWithHandlers must inherit property "onseeked" with the proper type PASS Document interface: documentWithHandlers must inherit property "onseeking" with the proper type PASS Document interface: documentWithHandlers must inherit property "onselect" with the proper type -FAIL Document interface: documentWithHandlers must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" found on object expected in prototype chain +PASS Document interface: documentWithHandlers must inherit property "onslotchange" with the proper type PASS Document interface: documentWithHandlers must inherit property "onstalled" with the proper type PASS Document interface: documentWithHandlers must inherit property "onsubmit" with the proper type PASS Document interface: documentWithHandlers must inherit property "onsuspend" with the proper type diff --git a/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt b/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt index 5be542b6eda3b..10513a316c875 100644 --- a/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt +++ b/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt @@ -264,11 +264,11 @@ PASS onselect: the default value must be null PASS onselect: the content attribute must be compiled into a function as the corresponding property PASS onselect: dynamic changes on the attribute PASS onselect: dispatching an Event at a element must trigger element.onselect -FAIL onslotchange: must be on the appropriate locations for GlobalEventHandlers assert_true: MathMLElement has an own property named "onslotchange" expected true got false -FAIL onslotchange: the default value must be null assert_equals: The default value of the property is null for a MathMLMathElement instance expected (object) null but got (undefined) undefined -FAIL onslotchange: the content attribute must be compiled into a function as the corresponding property assert_equals: The onslotchange property must be a function expected "function" but got "undefined" -FAIL onslotchange: dynamic changes on the attribute assert_equals: The onslotchange property must be null (no attribute) expected (object) null but got (undefined) undefined -FAIL onslotchange: dispatching an Event at a element must trigger element.onslotchange assert_equals: The event must be fired at the element expected (object) Element node but got (undefined) undefined +PASS onslotchange: must be on the appropriate locations for GlobalEventHandlers +PASS onslotchange: the default value must be null +PASS onslotchange: the content attribute must be compiled into a function as the corresponding property +PASS onslotchange: dynamic changes on the attribute +PASS onslotchange: dispatching an Event at a element must trigger element.onslotchange PASS onstalled: must be on the appropriate locations for GlobalEventHandlers PASS onstalled: the default value must be null PASS onstalled: the content attribute must be compiled into a function as the corresponding property diff --git a/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt b/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt index 70625f6100e30..8b115169c1493 100644 --- a/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt +++ b/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt @@ -310,7 +310,7 @@ FAIL HTMLElement interface: attribute onsecuritypolicyviolation assert_true: The PASS HTMLElement interface: attribute onseeked PASS HTMLElement interface: attribute onseeking PASS HTMLElement interface: attribute onselect -FAIL HTMLElement interface: attribute onslotchange assert_true: The prototype object must have a property "onslotchange" expected true got false +PASS HTMLElement interface: attribute onslotchange PASS HTMLElement interface: attribute onstalled PASS HTMLElement interface: attribute onsubmit PASS HTMLElement interface: attribute onsuspend @@ -405,7 +405,7 @@ FAIL HTMLElement interface: document.createElement("noscript") must inherit prop PASS HTMLElement interface: document.createElement("noscript") must inherit property "onseeked" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onseeking" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onselect" with the proper type -FAIL HTMLElement interface: document.createElement("noscript") must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" not found in prototype chain +PASS HTMLElement interface: document.createElement("noscript") must inherit property "onslotchange" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onstalled" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onsubmit" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onsuspend" with the proper type @@ -4391,7 +4391,7 @@ FAIL Window interface: attribute onsecuritypolicyviolation assert_own_property: PASS Window interface: attribute onseeked PASS Window interface: attribute onseeking PASS Window interface: attribute onselect -FAIL Window interface: attribute onslotchange assert_own_property: The global object must have a property "onslotchange" expected property "onslotchange" missing +PASS Window interface: attribute onslotchange PASS Window interface: attribute onstalled PASS Window interface: attribute onsubmit PASS Window interface: attribute onsuspend @@ -4540,7 +4540,7 @@ FAIL Window interface: window must inherit property "onsecuritypolicyviolation" PASS Window interface: window must inherit property "onseeked" with the proper type PASS Window interface: window must inherit property "onseeking" with the proper type PASS Window interface: window must inherit property "onselect" with the proper type -FAIL Window interface: window must inherit property "onslotchange" with the proper type assert_own_property: expected property "onslotchange" missing +PASS Window interface: window must inherit property "onslotchange" with the proper type PASS Window interface: window must inherit property "onstalled" with the proper type PASS Window interface: window must inherit property "onsubmit" with the proper type PASS Window interface: window must inherit property "onsuspend" with the proper type @@ -5257,7 +5257,7 @@ FAIL SVGElement interface: attribute onsecuritypolicyviolation assert_true: The PASS SVGElement interface: attribute onseeked PASS SVGElement interface: attribute onseeking PASS SVGElement interface: attribute onselect -FAIL SVGElement interface: attribute onslotchange assert_true: The prototype object must have a property "onslotchange" expected true got false +PASS SVGElement interface: attribute onslotchange PASS SVGElement interface: attribute onstalled PASS SVGElement interface: attribute onsubmit PASS SVGElement interface: attribute onsuspend @@ -5394,7 +5394,7 @@ FAIL Document interface: attribute onsecuritypolicyviolation assert_true: The pr PASS Document interface: attribute onseeked PASS Document interface: attribute onseeking PASS Document interface: attribute onselect -FAIL Document interface: attribute onslotchange assert_true: The prototype object must have a property "onslotchange" expected true got false +PASS Document interface: attribute onslotchange PASS Document interface: attribute onstalled PASS Document interface: attribute onsubmit PASS Document interface: attribute onsuspend @@ -5520,7 +5520,7 @@ FAIL Document interface: iframe.contentDocument must inherit property "onsecurit PASS Document interface: iframe.contentDocument must inherit property "onseeked" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onseeking" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onselect" with the proper type -FAIL Document interface: iframe.contentDocument must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" not found in prototype chain +PASS Document interface: iframe.contentDocument must inherit property "onslotchange" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onstalled" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onsubmit" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onsuspend" with the proper type @@ -5646,7 +5646,7 @@ FAIL Document interface: new Document() must inherit property "onsecuritypolicyv PASS Document interface: new Document() must inherit property "onseeked" with the proper type PASS Document interface: new Document() must inherit property "onseeking" with the proper type PASS Document interface: new Document() must inherit property "onselect" with the proper type -FAIL Document interface: new Document() must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" not found in prototype chain +PASS Document interface: new Document() must inherit property "onslotchange" with the proper type PASS Document interface: new Document() must inherit property "onstalled" with the proper type PASS Document interface: new Document() must inherit property "onsubmit" with the proper type PASS Document interface: new Document() must inherit property "onsuspend" with the proper type @@ -5772,7 +5772,7 @@ FAIL Document interface: documentWithHandlers must inherit property "onsecurityp PASS Document interface: documentWithHandlers must inherit property "onseeked" with the proper type PASS Document interface: documentWithHandlers must inherit property "onseeking" with the proper type PASS Document interface: documentWithHandlers must inherit property "onselect" with the proper type -FAIL Document interface: documentWithHandlers must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" found on object expected in prototype chain +PASS Document interface: documentWithHandlers must inherit property "onslotchange" with the proper type PASS Document interface: documentWithHandlers must inherit property "onstalled" with the proper type PASS Document interface: documentWithHandlers must inherit property "onsubmit" with the proper type PASS Document interface: documentWithHandlers must inherit property "onsuspend" with the proper type diff --git a/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt b/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt index 5be542b6eda3b..10513a316c875 100644 --- a/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt +++ b/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt @@ -264,11 +264,11 @@ PASS onselect: the default value must be null PASS onselect: the content attribute must be compiled into a function as the corresponding property PASS onselect: dynamic changes on the attribute PASS onselect: dispatching an Event at a element must trigger element.onselect -FAIL onslotchange: must be on the appropriate locations for GlobalEventHandlers assert_true: MathMLElement has an own property named "onslotchange" expected true got false -FAIL onslotchange: the default value must be null assert_equals: The default value of the property is null for a MathMLMathElement instance expected (object) null but got (undefined) undefined -FAIL onslotchange: the content attribute must be compiled into a function as the corresponding property assert_equals: The onslotchange property must be a function expected "function" but got "undefined" -FAIL onslotchange: dynamic changes on the attribute assert_equals: The onslotchange property must be null (no attribute) expected (object) null but got (undefined) undefined -FAIL onslotchange: dispatching an Event at a element must trigger element.onslotchange assert_equals: The event must be fired at the element expected (object) Element node but got (undefined) undefined +PASS onslotchange: must be on the appropriate locations for GlobalEventHandlers +PASS onslotchange: the default value must be null +PASS onslotchange: the content attribute must be compiled into a function as the corresponding property +PASS onslotchange: dynamic changes on the attribute +PASS onslotchange: dispatching an Event at a element must trigger element.onslotchange PASS onstalled: must be on the appropriate locations for GlobalEventHandlers PASS onstalled: the default value must be null PASS onstalled: the content attribute must be compiled into a function as the corresponding property diff --git a/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt b/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt index 9b4a0257e2e4f..3520c6d4aaefb 100644 --- a/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt +++ b/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt @@ -310,7 +310,7 @@ FAIL HTMLElement interface: attribute onsecuritypolicyviolation assert_true: The PASS HTMLElement interface: attribute onseeked PASS HTMLElement interface: attribute onseeking PASS HTMLElement interface: attribute onselect -FAIL HTMLElement interface: attribute onslotchange assert_true: The prototype object must have a property "onslotchange" expected true got false +PASS HTMLElement interface: attribute onslotchange PASS HTMLElement interface: attribute onstalled PASS HTMLElement interface: attribute onsubmit PASS HTMLElement interface: attribute onsuspend @@ -405,7 +405,7 @@ FAIL HTMLElement interface: document.createElement("noscript") must inherit prop PASS HTMLElement interface: document.createElement("noscript") must inherit property "onseeked" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onseeking" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onselect" with the proper type -FAIL HTMLElement interface: document.createElement("noscript") must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" not found in prototype chain +PASS HTMLElement interface: document.createElement("noscript") must inherit property "onslotchange" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onstalled" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onsubmit" with the proper type PASS HTMLElement interface: document.createElement("noscript") must inherit property "onsuspend" with the proper type @@ -4391,7 +4391,7 @@ FAIL Window interface: attribute onsecuritypolicyviolation assert_own_property: PASS Window interface: attribute onseeked PASS Window interface: attribute onseeking PASS Window interface: attribute onselect -FAIL Window interface: attribute onslotchange assert_own_property: The global object must have a property "onslotchange" expected property "onslotchange" missing +PASS Window interface: attribute onslotchange PASS Window interface: attribute onstalled PASS Window interface: attribute onsubmit PASS Window interface: attribute onsuspend @@ -4540,7 +4540,7 @@ FAIL Window interface: window must inherit property "onsecuritypolicyviolation" PASS Window interface: window must inherit property "onseeked" with the proper type PASS Window interface: window must inherit property "onseeking" with the proper type PASS Window interface: window must inherit property "onselect" with the proper type -FAIL Window interface: window must inherit property "onslotchange" with the proper type assert_own_property: expected property "onslotchange" missing +PASS Window interface: window must inherit property "onslotchange" with the proper type PASS Window interface: window must inherit property "onstalled" with the proper type PASS Window interface: window must inherit property "onsubmit" with the proper type PASS Window interface: window must inherit property "onsuspend" with the proper type @@ -5257,7 +5257,7 @@ FAIL SVGElement interface: attribute onsecuritypolicyviolation assert_true: The PASS SVGElement interface: attribute onseeked PASS SVGElement interface: attribute onseeking PASS SVGElement interface: attribute onselect -FAIL SVGElement interface: attribute onslotchange assert_true: The prototype object must have a property "onslotchange" expected true got false +PASS SVGElement interface: attribute onslotchange PASS SVGElement interface: attribute onstalled PASS SVGElement interface: attribute onsubmit PASS SVGElement interface: attribute onsuspend @@ -5394,7 +5394,7 @@ FAIL Document interface: attribute onsecuritypolicyviolation assert_true: The pr PASS Document interface: attribute onseeked PASS Document interface: attribute onseeking PASS Document interface: attribute onselect -FAIL Document interface: attribute onslotchange assert_true: The prototype object must have a property "onslotchange" expected true got false +PASS Document interface: attribute onslotchange PASS Document interface: attribute onstalled PASS Document interface: attribute onsubmit PASS Document interface: attribute onsuspend @@ -5520,7 +5520,7 @@ FAIL Document interface: iframe.contentDocument must inherit property "onsecurit PASS Document interface: iframe.contentDocument must inherit property "onseeked" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onseeking" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onselect" with the proper type -FAIL Document interface: iframe.contentDocument must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" not found in prototype chain +PASS Document interface: iframe.contentDocument must inherit property "onslotchange" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onstalled" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onsubmit" with the proper type PASS Document interface: iframe.contentDocument must inherit property "onsuspend" with the proper type @@ -5646,7 +5646,7 @@ FAIL Document interface: new Document() must inherit property "onsecuritypolicyv PASS Document interface: new Document() must inherit property "onseeked" with the proper type PASS Document interface: new Document() must inherit property "onseeking" with the proper type PASS Document interface: new Document() must inherit property "onselect" with the proper type -FAIL Document interface: new Document() must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" not found in prototype chain +PASS Document interface: new Document() must inherit property "onslotchange" with the proper type PASS Document interface: new Document() must inherit property "onstalled" with the proper type PASS Document interface: new Document() must inherit property "onsubmit" with the proper type PASS Document interface: new Document() must inherit property "onsuspend" with the proper type @@ -5772,7 +5772,7 @@ FAIL Document interface: documentWithHandlers must inherit property "onsecurityp PASS Document interface: documentWithHandlers must inherit property "onseeked" with the proper type PASS Document interface: documentWithHandlers must inherit property "onseeking" with the proper type PASS Document interface: documentWithHandlers must inherit property "onselect" with the proper type -FAIL Document interface: documentWithHandlers must inherit property "onslotchange" with the proper type assert_inherits: property "onslotchange" found on object expected in prototype chain +PASS Document interface: documentWithHandlers must inherit property "onslotchange" with the proper type PASS Document interface: documentWithHandlers must inherit property "onstalled" with the proper type PASS Document interface: documentWithHandlers must inherit property "onsubmit" with the proper type PASS Document interface: documentWithHandlers must inherit property "onsuspend" with the proper type diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog index b77706e9c39c8..6075320a56a31 100644 --- a/Source/WebCore/ChangeLog +++ b/Source/WebCore/ChangeLog @@ -1,3 +1,30 @@ +2020-10-03 Tetsuharu Ohzeki + + Add onslotchange on ShadowRoot and GlobalEventHandlers + https://bugs.webkit.org/show_bug.cgi?id=191310 + + Reviewed by Sam Weinig. + + `onslotchange` attribute has been added to `ShadowRoot` and + `GlobalEventHandlers` by https://github.com/whatwg/html/issues/3487 + + - https://github.com/whatwg/dom/pull/78 + - https://github.com/whatwg/html/pull/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): + 2020-10-03 Yusuke Suzuki [JSC] Introduce JITOperationList to validate JIT-caged pointers diff --git a/Source/WebCore/dom/GlobalEventHandlers.idl b/Source/WebCore/dom/GlobalEventHandlers.idl index f4208b627dd71..140d20c6f64ac 100644 --- a/Source/WebCore/dom/GlobalEventHandlers.idl +++ b/Source/WebCore/dom/GlobalEventHandlers.idl @@ -88,8 +88,7 @@ interface mixin GlobalEventHandlers { attribute EventHandler onseeked; attribute EventHandler onseeking; attribute EventHandler onselect; - // FIXME: Implement 'onslotchange'. - // attribute EventHandler onslotchange; + attribute EventHandler onslotchange; attribute EventHandler onstalled; attribute EventHandler onsubmit; attribute EventHandler onsuspend; diff --git a/Source/WebCore/dom/ShadowRoot.idl b/Source/WebCore/dom/ShadowRoot.idl index 809a3189dccde..c384e48832213 100644 --- a/Source/WebCore/dom/ShadowRoot.idl +++ b/Source/WebCore/dom/ShadowRoot.idl @@ -29,8 +29,7 @@ ] interface ShadowRoot : DocumentFragment { readonly attribute ShadowRootMode mode; readonly attribute Element host; - // FIXME: Implement 'onslotchange'. - // attribute EventHandler onslotchange; + attribute EventHandler onslotchange; }; ShadowRoot includes DocumentOrShadowRoot; diff --git a/Source/WebCore/html/HTMLAttributeNames.in b/Source/WebCore/html/HTMLAttributeNames.in index d2cf7bb98ee51..26e5e4525079d 100644 --- a/Source/WebCore/html/HTMLAttributeNames.in +++ b/Source/WebCore/html/HTMLAttributeNames.in @@ -294,6 +294,7 @@ onseeking onselect onselectstart onselectionchange +onslotchange onwebkitspeechchange onwheel onstalled diff --git a/Source/WebCore/html/HTMLElement.cpp b/Source/WebCore/html/HTMLElement.cpp index 6a8858e4e7230..1a592cdc6e4ed 100644 --- a/Source/WebCore/html/HTMLElement.cpp +++ b/Source/WebCore/html/HTMLElement.cpp @@ -312,6 +312,7 @@ HTMLElement::EventHandlerNameMap HTMLElement::createEventHandlerNameMap() &onseekingAttr.get(), &onselectAttr.get(), &onselectstartAttr.get(), + &onslotchangeAttr.get(), &onstalledAttr.get(), &onsubmitAttr.get(), &onsuspendAttr.get(),