Title: [267893] trunk
Revision
267893
Author
wei...@apple.com
Date
2020-10-02 13:30:27 -0700 (Fri, 02 Oct 2020)

Log Message

Re-align HTMLElement with the HTML spec
https://bugs.webkit.org/show_bug.cgi?id=217202

Reviewed by Darin Adler.

LayoutTests/imported/w3c:

* web-platform-tests/html/dom/idlharness.https-expected.txt:
* web-platform-tests/svg/types/scripted/event-handler-all-document-element-events-expected.txt:
Update more now passing results.

Source/WebCore:

- Stops including DocumentAndElementEventHandlers in Element, and instead matches spec
  and other browsers by having HTMLElement, SVGElement and MathMLElement include it.
- Splits out ElementContentEditable from HTMLElement and has HTMLElement include it.
- Splits CSSOM View parts of HTMLElement out into HTMLElement+CSSOMView.idl
- Re-orders includes to more closely match spec'd order. Has no real effect but made
  me happy.

Updates results to existing tests that are now passing, all due to the change to
include DocumentAndElementEventHandlers in the Element subclasses, not Element itself.

* CMakeLists.txt:
* DerivedSources-input.xcfilelist:
* DerivedSources-output.xcfilelist:
* DerivedSources.make:
* WebCore.xcodeproj/project.pbxproj:
* dom/Element.idl:
* dom/ElementContentEditable.idl: Added.
* html/HTMLBodyElement.idl:
* html/HTMLElement+CSSOMView.idl: Added.
* html/HTMLElement.idl:
* html/HTMLFrameSetElement.idl:
* html/HTMLMediaElement+AudioOutput.idl: Added.
* html/HTMLMediaElementAudioOutput.idl: Removed.
* mathml/MathMLElement.idl:
* svg/SVGElement.idl:

LayoutTests:

* fast/events/DocumentAndElementEventHandlers-expected.txt:
* fast/events/DocumentAndElementEventHandlers.html:
Update test to match spec by checking on the HTMLElement prototype, not the
Element prototype.

* fast/dom/event-handler-attributes-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/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
* platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
* platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
Update more now passing results.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (267892 => 267893)


--- trunk/LayoutTests/ChangeLog	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/LayoutTests/ChangeLog	2020-10-02 20:30:27 UTC (rev 267893)
@@ -1,3 +1,23 @@
+2020-10-02  Sam Weinig  <wei...@apple.com>
+
+        Re-align HTMLElement with the HTML spec
+        https://bugs.webkit.org/show_bug.cgi?id=217202
+
+        Reviewed by Darin Adler.
+
+        * fast/events/DocumentAndElementEventHandlers-expected.txt:
+        * fast/events/DocumentAndElementEventHandlers.html:
+        Update test to match spec by checking on the HTMLElement prototype, not the 
+        Element prototype.
+
+        * fast/dom/event-handler-attributes-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/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
+        * platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
+        * platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
+        Update more now passing results.
+
 2020-09-30  Antoine Quint  <grao...@webkit.org>
 
         Add non-animated support for the CSS translate property

Modified: trunk/LayoutTests/fast/dom/event-handler-attributes-expected.txt (267892 => 267893)


--- trunk/LayoutTests/fast/dom/event-handler-attributes-expected.txt	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/LayoutTests/fast/dom/event-handler-attributes-expected.txt	2020-10-02 20:30:27 UTC (rev 267893)
@@ -858,10 +858,10 @@
 PASS testElementAttribute(nonHTMLElement, "animationend") is "none"
 PASS testElementAttribute(nonHTMLElement, "animationiteration") is "none"
 PASS testElementAttribute(nonHTMLElement, "animationstart") is "none"
-FAIL testElementAttribute(nonHTMLElement, "beforecopy") should be none. Was script: target; content: none.
-FAIL testElementAttribute(nonHTMLElement, "beforecut") should be none. Was script: target; content: none.
+PASS testElementAttribute(nonHTMLElement, "beforecopy") is "none"
+PASS testElementAttribute(nonHTMLElement, "beforecut") is "none"
 FAIL testElementAttribute(nonHTMLElement, "beforeload") should be none. Was script: target; content: none.
-FAIL testElementAttribute(nonHTMLElement, "beforepaste") should be none. Was script: target; content: none.
+PASS testElementAttribute(nonHTMLElement, "beforepaste") is "none"
 PASS testElementAttribute(nonHTMLElement, "beforeunload") is "none"
 PASS testElementAttribute(nonHTMLElement, "blur") is "none"
 PASS testElementAttribute(nonHTMLElement, "canplay") is "none"
@@ -869,8 +869,8 @@
 PASS testElementAttribute(nonHTMLElement, "change") is "none"
 PASS testElementAttribute(nonHTMLElement, "click") is "none"
 PASS testElementAttribute(nonHTMLElement, "contextmenu") is "none"
-FAIL testElementAttribute(nonHTMLElement, "copy") should be none. Was script: target; content: none.
-FAIL testElementAttribute(nonHTMLElement, "cut") should be none. Was script: target; content: none.
+PASS testElementAttribute(nonHTMLElement, "copy") is "none"
+PASS testElementAttribute(nonHTMLElement, "cut") is "none"
 PASS testElementAttribute(nonHTMLElement, "dblclick") is "none"
 PASS testElementAttribute(nonHTMLElement, "drag") is "none"
 PASS testElementAttribute(nonHTMLElement, "dragend") is "none"
@@ -910,7 +910,7 @@
 PASS testElementAttribute(nonHTMLElement, "online") is "none"
 PASS testElementAttribute(nonHTMLElement, "pagehide") is "none"
 PASS testElementAttribute(nonHTMLElement, "pageshow") is "none"
-FAIL testElementAttribute(nonHTMLElement, "paste") should be none. Was script: target; content: none.
+PASS testElementAttribute(nonHTMLElement, "paste") is "none"
 PASS testElementAttribute(nonHTMLElement, "pause") is "none"
 PASS testElementAttribute(nonHTMLElement, "play") is "none"
 PASS testElementAttribute(nonHTMLElement, "playing") is "none"

Modified: trunk/LayoutTests/fast/events/DocumentAndElementEventHandlers-expected.txt (267892 => 267893)


--- trunk/LayoutTests/fast/events/DocumentAndElementEventHandlers-expected.txt	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/LayoutTests/fast/events/DocumentAndElementEventHandlers-expected.txt	2020-10-02 20:30:27 UTC (rev 267893)
@@ -1,8 +1,8 @@
 
 PASS oncopy EventHandler on Document
-PASS oncopy EventHander on Element
+PASS oncopy EventHander on HTMLElement
 PASS oncut EventHandler on Document
-PASS oncut EventHander on Element
+PASS oncut EventHander on HTMLElement
 PASS onpaste EventHandler on Document
-PASS onpaste EventHander on Element
+PASS onpaste EventHander on HTMLElement
 

Modified: trunk/LayoutTests/fast/events/DocumentAndElementEventHandlers.html (267892 => 267893)


--- trunk/LayoutTests/fast/events/DocumentAndElementEventHandlers.html	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/LayoutTests/fast/events/DocumentAndElementEventHandlers.html	2020-10-02 20:30:27 UTC (rev 267893)
@@ -14,19 +14,19 @@
     }, description);
 }
 
-function testOnElement(eventHandler, description)
+function testOnHTMLElement(eventHandler, description)
 {
     test(function() {
         assert_idl_attribute(document.body, eventHandler, "element has " + eventHandler + " IDL attribute");
-        assert_own_property(Element.prototype, eventHandler, eventHandler + " on Element prototype");
+        assert_own_property(HTMLElement.prototype, eventHandler, eventHandler + " on HTMLElement prototype");
         assert_true(eventHandler in document.body, eventHandler + " in element is true");
-        assert_true(Object.getOwnPropertyDescriptor(Element.prototype, eventHandler).enumerable, "element." + eventHandler + " is enumerable");
+        assert_true(Object.getOwnPropertyDescriptor(HTMLElement.prototype, eventHandler).enumerable, "element." + eventHandler + " is enumerable");
    }, description);
 }
 
 for (let eventHandler of ["oncopy", "oncut", "onpaste"]) {
     testOnDocument(eventHandler, eventHandler + " EventHandler on Document");
-    testOnElement(eventHandler, eventHandler + " EventHander on Element");
+    testOnHTMLElement(eventHandler, eventHandler + " EventHander on HTMLElement");
 }
 </script>
 </body>

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (267892 => 267893)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2020-10-02 20:30:27 UTC (rev 267893)
@@ -1,3 +1,14 @@
+2020-10-02  Sam Weinig  <wei...@apple.com>
+
+        Re-align HTMLElement with the HTML spec
+        https://bugs.webkit.org/show_bug.cgi?id=217202
+
+        Reviewed by Darin Adler.
+
+        * web-platform-tests/html/dom/idlharness.https-expected.txt:
+        * web-platform-tests/svg/types/scripted/event-handler-all-document-element-events-expected.txt:
+        Update more now passing results.
+
 2020-09-30  Antoine Quint  <grao...@webkit.org>
 
         Add non-animated support for the CSS translate property

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (267892 => 267893)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt	2020-10-02 20:30:27 UTC (rev 267893)
@@ -188,9 +188,9 @@
 PASS HTMLElement interface: attribute ontoggle
 PASS HTMLElement interface: attribute onvolumechange
 PASS HTMLElement interface: attribute onwaiting
-FAIL HTMLElement interface: attribute oncopy assert_own_property: expected property "oncopy" missing
-FAIL HTMLElement interface: attribute oncut assert_own_property: expected property "oncut" missing
-FAIL HTMLElement interface: attribute onpaste assert_own_property: expected property "onpaste" missing
+PASS HTMLElement interface: attribute oncopy
+PASS HTMLElement interface: attribute oncut
+PASS HTMLElement interface: attribute onpaste
 PASS HTMLElement interface: attribute contentEditable
 FAIL HTMLElement interface: attribute enterKeyHint assert_true: The prototype object must have a property "enterKeyHint" expected true got false
 PASS HTMLElement interface: attribute isContentEditable
@@ -5092,9 +5092,9 @@
 PASS SVGElement interface: attribute ontoggle
 PASS SVGElement interface: attribute onvolumechange
 PASS SVGElement interface: attribute onwaiting
-FAIL SVGElement interface: attribute oncopy assert_own_property: expected property "oncopy" missing
-FAIL SVGElement interface: attribute oncut assert_own_property: expected property "oncut" missing
-FAIL SVGElement interface: attribute onpaste assert_own_property: expected property "onpaste" missing
+PASS SVGElement interface: attribute oncopy
+PASS SVGElement interface: attribute oncut
+PASS SVGElement interface: attribute onpaste
 PASS SVGElement interface: attribute dataset
 FAIL SVGElement interface: attribute nonce assert_true: The prototype object must have a property "nonce" expected true got false
 FAIL SVGElement interface: attribute autofocus assert_true: The prototype object must have a property "autofocus" expected true got false

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/svg/types/scripted/event-handler-all-document-element-events-expected.txt (267892 => 267893)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/svg/types/scripted/event-handler-all-document-element-events-expected.txt	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/svg/types/scripted/event-handler-all-document-element-events-expected.txt	2020-10-02 20:30:27 UTC (rev 267893)
@@ -1,13 +1,13 @@
 
-FAIL oncut: DocumentAndElementEventHandlers must be on SVGElement not Element assert_true: SVGElement has an own property named "oncut" expected true got false
+PASS oncut: DocumentAndElementEventHandlers must be on SVGElement not Element
 PASS oncut: the default value must be null
 PASS oncut: the content attribute must be compiled into a function as the corresponding property
 PASS oncut: the content attribute must execute when an event is dispatched
-FAIL oncopy: DocumentAndElementEventHandlers must be on SVGElement not Element assert_true: SVGElement has an own property named "oncopy" expected true got false
+PASS oncopy: DocumentAndElementEventHandlers must be on SVGElement not Element
 PASS oncopy: the default value must be null
 PASS oncopy: the content attribute must be compiled into a function as the corresponding property
 PASS oncopy: the content attribute must execute when an event is dispatched
-FAIL onpaste: DocumentAndElementEventHandlers must be on SVGElement not Element assert_true: SVGElement has an own property named "onpaste" expected true got false
+PASS onpaste: DocumentAndElementEventHandlers must be on SVGElement not Element
 PASS onpaste: the default value must be null
 PASS onpaste: the content attribute must be compiled into a function as the corresponding property
 PASS onpaste: the content attribute must execute when an event is dispatched

Modified: trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (267892 => 267893)


--- trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt	2020-10-02 20:30:27 UTC (rev 267893)
@@ -323,9 +323,9 @@
 PASS HTMLElement interface: attribute onwebkitanimationstart
 PASS HTMLElement interface: attribute onwebkittransitionend
 PASS HTMLElement interface: attribute onwheel
-FAIL HTMLElement interface: attribute oncopy assert_own_property: expected property "oncopy" missing
-FAIL HTMLElement interface: attribute oncut assert_own_property: expected property "oncut" missing
-FAIL HTMLElement interface: attribute onpaste assert_own_property: expected property "onpaste" missing
+PASS HTMLElement interface: attribute oncopy
+PASS HTMLElement interface: attribute oncut
+PASS HTMLElement interface: attribute onpaste
 PASS HTMLElement interface: attribute contentEditable
 FAIL HTMLElement interface: attribute enterKeyHint assert_true: The prototype object must have a property "enterKeyHint" expected true got false
 PASS HTMLElement interface: attribute isContentEditable
@@ -5270,9 +5270,9 @@
 PASS SVGElement interface: attribute onwebkitanimationstart
 PASS SVGElement interface: attribute onwebkittransitionend
 PASS SVGElement interface: attribute onwheel
-FAIL SVGElement interface: attribute oncopy assert_own_property: expected property "oncopy" missing
-FAIL SVGElement interface: attribute oncut assert_own_property: expected property "oncut" missing
-FAIL SVGElement interface: attribute onpaste assert_own_property: expected property "onpaste" missing
+PASS SVGElement interface: attribute oncopy
+PASS SVGElement interface: attribute oncut
+PASS SVGElement interface: attribute onpaste
 PASS SVGElement interface: attribute dataset
 FAIL SVGElement interface: attribute nonce assert_true: The prototype object must have a property "nonce" expected true got false
 FAIL SVGElement interface: attribute autofocus assert_true: The prototype object must have a property "autofocus" expected true got false

Modified: trunk/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (267892 => 267893)


--- trunk/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt	2020-10-02 20:30:27 UTC (rev 267893)
@@ -323,9 +323,9 @@
 PASS HTMLElement interface: attribute onwebkitanimationstart
 PASS HTMLElement interface: attribute onwebkittransitionend
 PASS HTMLElement interface: attribute onwheel
-FAIL HTMLElement interface: attribute oncopy assert_own_property: expected property "oncopy" missing
-FAIL HTMLElement interface: attribute oncut assert_own_property: expected property "oncut" missing
-FAIL HTMLElement interface: attribute onpaste assert_own_property: expected property "onpaste" missing
+PASS HTMLElement interface: attribute oncopy
+PASS HTMLElement interface: attribute oncut
+PASS HTMLElement interface: attribute onpaste
 PASS HTMLElement interface: attribute contentEditable
 PASS HTMLElement interface: attribute enterKeyHint
 PASS HTMLElement interface: attribute isContentEditable
@@ -5260,9 +5260,9 @@
 PASS SVGElement interface: attribute onwebkitanimationstart
 PASS SVGElement interface: attribute onwebkittransitionend
 PASS SVGElement interface: attribute onwheel
-FAIL SVGElement interface: attribute oncopy assert_own_property: expected property "oncopy" missing
-FAIL SVGElement interface: attribute oncut assert_own_property: expected property "oncut" missing
-FAIL SVGElement interface: attribute onpaste assert_own_property: expected property "onpaste" missing
+PASS SVGElement interface: attribute oncopy
+PASS SVGElement interface: attribute oncut
+PASS SVGElement interface: attribute onpaste
 PASS SVGElement interface: attribute dataset
 FAIL SVGElement interface: attribute nonce assert_true: The prototype object must have a property "nonce" expected true got false
 FAIL SVGElement interface: attribute autofocus assert_true: The prototype object must have a property "autofocus" expected true got false

Modified: trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (267892 => 267893)


--- trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt	2020-10-02 20:30:27 UTC (rev 267893)
@@ -323,9 +323,9 @@
 PASS HTMLElement interface: attribute onwebkitanimationstart
 PASS HTMLElement interface: attribute onwebkittransitionend
 PASS HTMLElement interface: attribute onwheel
-FAIL HTMLElement interface: attribute oncopy assert_own_property: expected property "oncopy" missing
-FAIL HTMLElement interface: attribute oncut assert_own_property: expected property "oncut" missing
-FAIL HTMLElement interface: attribute onpaste assert_own_property: expected property "onpaste" missing
+PASS HTMLElement interface: attribute oncopy
+PASS HTMLElement interface: attribute oncut
+PASS HTMLElement interface: attribute onpaste
 PASS HTMLElement interface: attribute contentEditable
 FAIL HTMLElement interface: attribute enterKeyHint assert_true: The prototype object must have a property "enterKeyHint" expected true got false
 PASS HTMLElement interface: attribute isContentEditable
@@ -5270,9 +5270,9 @@
 PASS SVGElement interface: attribute onwebkitanimationstart
 PASS SVGElement interface: attribute onwebkittransitionend
 PASS SVGElement interface: attribute onwheel
-FAIL SVGElement interface: attribute oncopy assert_own_property: expected property "oncopy" missing
-FAIL SVGElement interface: attribute oncut assert_own_property: expected property "oncut" missing
-FAIL SVGElement interface: attribute onpaste assert_own_property: expected property "onpaste" missing
+PASS SVGElement interface: attribute oncopy
+PASS SVGElement interface: attribute oncut
+PASS SVGElement interface: attribute onpaste
 PASS SVGElement interface: attribute dataset
 FAIL SVGElement interface: attribute nonce assert_true: The prototype object must have a property "nonce" expected true got false
 FAIL SVGElement interface: attribute autofocus assert_true: The prototype object must have a property "autofocus" expected true got false

Modified: trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (267892 => 267893)


--- trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt	2020-10-02 20:30:27 UTC (rev 267893)
@@ -323,9 +323,9 @@
 PASS HTMLElement interface: attribute onwebkitanimationstart
 PASS HTMLElement interface: attribute onwebkittransitionend
 PASS HTMLElement interface: attribute onwheel
-FAIL HTMLElement interface: attribute oncopy assert_own_property: expected property "oncopy" missing
-FAIL HTMLElement interface: attribute oncut assert_own_property: expected property "oncut" missing
-FAIL HTMLElement interface: attribute onpaste assert_own_property: expected property "onpaste" missing
+PASS HTMLElement interface: attribute oncopy
+PASS HTMLElement interface: attribute oncut
+PASS HTMLElement interface: attribute onpaste
 PASS HTMLElement interface: attribute contentEditable
 PASS HTMLElement interface: attribute enterKeyHint
 PASS HTMLElement interface: attribute isContentEditable
@@ -5270,9 +5270,9 @@
 PASS SVGElement interface: attribute onwebkitanimationstart
 PASS SVGElement interface: attribute onwebkittransitionend
 PASS SVGElement interface: attribute onwheel
-FAIL SVGElement interface: attribute oncopy assert_own_property: expected property "oncopy" missing
-FAIL SVGElement interface: attribute oncut assert_own_property: expected property "oncut" missing
-FAIL SVGElement interface: attribute onpaste assert_own_property: expected property "onpaste" missing
+PASS SVGElement interface: attribute oncopy
+PASS SVGElement interface: attribute oncut
+PASS SVGElement interface: attribute onpaste
 PASS SVGElement interface: attribute dataset
 FAIL SVGElement interface: attribute nonce assert_true: The prototype object must have a property "nonce" expected true got false
 FAIL SVGElement interface: attribute autofocus assert_true: The prototype object must have a property "autofocus" expected true got false

Modified: trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (267892 => 267893)


--- trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt	2020-10-02 20:30:27 UTC (rev 267893)
@@ -323,9 +323,9 @@
 PASS HTMLElement interface: attribute onwebkitanimationstart
 PASS HTMLElement interface: attribute onwebkittransitionend
 PASS HTMLElement interface: attribute onwheel
-FAIL HTMLElement interface: attribute oncopy assert_own_property: expected property "oncopy" missing
-FAIL HTMLElement interface: attribute oncut assert_own_property: expected property "oncut" missing
-FAIL HTMLElement interface: attribute onpaste assert_own_property: expected property "onpaste" missing
+PASS HTMLElement interface: attribute oncopy
+PASS HTMLElement interface: attribute oncut
+PASS HTMLElement interface: attribute onpaste
 PASS HTMLElement interface: attribute contentEditable
 FAIL HTMLElement interface: attribute enterKeyHint assert_true: The prototype object must have a property "enterKeyHint" expected true got false
 PASS HTMLElement interface: attribute isContentEditable
@@ -5270,9 +5270,9 @@
 PASS SVGElement interface: attribute onwebkitanimationstart
 PASS SVGElement interface: attribute onwebkittransitionend
 PASS SVGElement interface: attribute onwheel
-FAIL SVGElement interface: attribute oncopy assert_own_property: expected property "oncopy" missing
-FAIL SVGElement interface: attribute oncut assert_own_property: expected property "oncut" missing
-FAIL SVGElement interface: attribute onpaste assert_own_property: expected property "onpaste" missing
+PASS SVGElement interface: attribute oncopy
+PASS SVGElement interface: attribute oncut
+PASS SVGElement interface: attribute onpaste
 PASS SVGElement interface: attribute dataset
 FAIL SVGElement interface: attribute nonce assert_true: The prototype object must have a property "nonce" expected true got false
 FAIL SVGElement interface: attribute autofocus assert_true: The prototype object must have a property "autofocus" expected true got false

Modified: trunk/Source/WebCore/CMakeLists.txt (267892 => 267893)


--- trunk/Source/WebCore/CMakeLists.txt	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/Source/WebCore/CMakeLists.txt	2020-10-02 20:30:27 UTC (rev 267893)
@@ -795,6 +795,7 @@
     dom/DragEvent.idl
     dom/Element+DOMParsing.idl
     dom/Element.idl
+    dom/ElementContentEditable.idl
     dom/ErrorEvent.idl
     dom/Event.idl
     dom/EventInit.idl
@@ -896,6 +897,7 @@
     html/HTMLDirectoryElement.idl
     html/HTMLDivElement.idl
     html/HTMLDocument.idl
+    html/HTMLElement+CSSOMView.idl
     html/HTMLElement.idl
     html/HTMLEmbedElement.idl
     html/HTMLFieldSetElement.idl

Modified: trunk/Source/WebCore/ChangeLog (267892 => 267893)


--- trunk/Source/WebCore/ChangeLog	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/Source/WebCore/ChangeLog	2020-10-02 20:30:27 UTC (rev 267893)
@@ -1,3 +1,36 @@
+2020-10-02  Sam Weinig  <wei...@apple.com>
+
+        Re-align HTMLElement with the HTML spec
+        https://bugs.webkit.org/show_bug.cgi?id=217202
+
+        Reviewed by Darin Adler.
+
+        - Stops including DocumentAndElementEventHandlers in Element, and instead matches spec
+          and other browsers by having HTMLElement, SVGElement and MathMLElement include it.
+        - Splits out ElementContentEditable from HTMLElement and has HTMLElement include it.
+        - Splits CSSOM View parts of HTMLElement out into HTMLElement+CSSOMView.idl
+        - Re-orders includes to more closely match spec'd order. Has no real effect but made
+          me happy.
+        
+        Updates results to existing tests that are now passing, all due to the change to 
+        include DocumentAndElementEventHandlers in the Element subclasses, not Element itself.
+
+        * CMakeLists.txt:
+        * DerivedSources-input.xcfilelist:
+        * DerivedSources-output.xcfilelist:
+        * DerivedSources.make:
+        * WebCore.xcodeproj/project.pbxproj:
+        * dom/Element.idl:
+        * dom/ElementContentEditable.idl: Added.
+        * html/HTMLBodyElement.idl:
+        * html/HTMLElement+CSSOMView.idl: Added.
+        * html/HTMLElement.idl:
+        * html/HTMLFrameSetElement.idl:
+        * html/HTMLMediaElement+AudioOutput.idl: Added.
+        * html/HTMLMediaElementAudioOutput.idl: Removed.
+        * mathml/MathMLElement.idl:
+        * svg/SVGElement.idl:
+
 2020-10-02  Chris Dumez  <cdu...@apple.com>
 
         Add stubs for AudioWorkletProcessor and AudioWorkletGlobalScope

Modified: trunk/Source/WebCore/DerivedSources-input.xcfilelist (267892 => 267893)


--- trunk/Source/WebCore/DerivedSources-input.xcfilelist	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/Source/WebCore/DerivedSources-input.xcfilelist	2020-10-02 20:30:27 UTC (rev 267893)
@@ -715,6 +715,7 @@
 $(PROJECT_DIR)/dom/DragEvent.idl
 $(PROJECT_DIR)/dom/Element+DOMParsing.idl
 $(PROJECT_DIR)/dom/Element.idl
+$(PROJECT_DIR)/dom/ElementContentEditable.idl
 $(PROJECT_DIR)/dom/ErrorEvent.idl
 $(PROJECT_DIR)/dom/Event.idl
 $(PROJECT_DIR)/dom/EventInit.idl
@@ -824,6 +825,7 @@
 $(PROJECT_DIR)/html/HTMLDirectoryElement.idl
 $(PROJECT_DIR)/html/HTMLDivElement.idl
 $(PROJECT_DIR)/html/HTMLDocument.idl
+$(PROJECT_DIR)/html/HTMLElement+CSSOMView.idl
 $(PROJECT_DIR)/html/HTMLElement.idl
 $(PROJECT_DIR)/html/HTMLEmbedElement.idl
 $(PROJECT_DIR)/html/HTMLFieldSetElement.idl

Modified: trunk/Source/WebCore/DerivedSources-output.xcfilelist (267892 => 267893)


--- trunk/Source/WebCore/DerivedSources-output.xcfilelist	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/Source/WebCore/DerivedSources-output.xcfilelist	2020-10-02 20:30:27 UTC (rev 267893)
@@ -693,8 +693,8 @@
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSElement.h
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSElementCSSInlineStyle.cpp
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSElementCSSInlineStyle.h
-$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSElementDOMParsing.cpp
-$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSElementDOMParsing.h
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSElementContentEditable.cpp
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSElementContentEditable.h
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSEndingType.cpp
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSEndingType.h
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSEnterPictureInPictureEvent.cpp
@@ -929,6 +929,8 @@
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHTMLDivElement.h
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHTMLDocument.cpp
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHTMLDocument.h
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHTMLElement+CSSOMView.cpp
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHTMLElement+CSSOMView.h
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHTMLElement.cpp
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHTMLElement.h
 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHTMLElementWrapperFactory.cpp

Modified: trunk/Source/WebCore/DerivedSources.make (267892 => 267893)


--- trunk/Source/WebCore/DerivedSources.make	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/Source/WebCore/DerivedSources.make	2020-10-02 20:30:27 UTC (rev 267893)
@@ -745,8 +745,9 @@
     $(WebCore)/dom/DocumentOrShadowRoot+PointerLock.idl \
     $(WebCore)/dom/DocumentType.idl \
     $(WebCore)/dom/DragEvent.idl \
+    $(WebCore)/dom/Element+DOMParsing.idl \
     $(WebCore)/dom/Element.idl \
-    $(WebCore)/dom/Element+DOMParsing.idl \
+    $(WebCore)/dom/ElementContentEditable.idl \
     $(WebCore)/dom/ErrorEvent.idl \
     $(WebCore)/dom/Event.idl \
     $(WebCore)/dom/EventInit.idl \
@@ -844,6 +845,7 @@
     $(WebCore)/html/HTMLDirectoryElement.idl \
     $(WebCore)/html/HTMLDivElement.idl \
     $(WebCore)/html/HTMLDocument.idl \
+    $(WebCore)/html/HTMLElement+CSSOMView.idl \
     $(WebCore)/html/HTMLElement.idl \
     $(WebCore)/html/HTMLEmbedElement.idl \
     $(WebCore)/html/HTMLFieldSetElement.idl \

Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (267892 => 267893)


--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj	2020-10-02 20:30:27 UTC (rev 267893)
@@ -10257,6 +10257,7 @@
 		7C6579ED1E00856600E3A27A /* JSApplePayShippingMethod.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSApplePayShippingMethod.cpp; sourceTree = "<group>"; };
 		7C6579EE1E00856600E3A27A /* JSApplePayShippingMethod.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSApplePayShippingMethod.h; sourceTree = "<group>"; };
 		7C6752BA1B06E82000C279CB /* NonElementParentNode.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = NonElementParentNode.idl; sourceTree = "<group>"; };
+		7C6771092526A45800FDEF00 /* HTMLElement+CSSOMView.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = "HTMLElement+CSSOMView.idl"; sourceTree = "<group>"; };
 		7C6EFEEA1F946A2E00FFAD41 /* SettingsDefaultValues.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SettingsDefaultValues.h; sourceTree = "<group>"; };
 		7C72471A2516744C00C363CD /* Performance+UserTiming.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = "Performance+UserTiming.idl"; sourceTree = "<group>"; };
 		7C72471C251674CE00C363CD /* Performance+PerformanceTimeline.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = "Performance+PerformanceTimeline.idl"; sourceTree = "<group>"; };
@@ -10367,6 +10368,7 @@
 		7C9DBFEA1A9C489F000D6B25 /* HTMLAttachmentElement.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = HTMLAttachmentElement.idl; sourceTree = "<group>"; };
 		7C9DBFEB1A9C49B1000D6B25 /* JSHTMLAttachmentElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLAttachmentElement.cpp; sourceTree = "<group>"; };
 		7C9DBFEC1A9C49B1000D6B25 /* JSHTMLAttachmentElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSHTMLAttachmentElement.h; sourceTree = "<group>"; };
+		7CA55FCA252417A70031F452 /* ElementContentEditable.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = ElementContentEditable.idl; sourceTree = "<group>"; };
 		7CAC6AE8247F082000E61D59 /* ColorMatrix.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ColorMatrix.h; sourceTree = "<group>"; };
 		7CAC6AEC247F1C5100E61D59 /* ColorComponents.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ColorComponents.h; sourceTree = "<group>"; };
 		7CB5CA3D1E525C6C00FAEF13 /* MediaQueryExpression.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MediaQueryExpression.cpp; sourceTree = "<group>"; };
@@ -22886,6 +22888,7 @@
 				F523D23B02DE4396018635CA /* HTMLDocument.cpp */,
 				F523D23C02DE4396018635CA /* HTMLDocument.h */,
 				1A494E290A12354300FDAFC1 /* HTMLDocument.idl */,
+				7C6771092526A45800FDEF00 /* HTMLElement+CSSOMView.idl */,
 				F523D23E02DE4396018635CA /* HTMLElement.cpp */,
 				F523D23F02DE4396018635CA /* HTMLElement.h */,
 				1A494BBB0A122DCD00FDAFC1 /* HTMLElement.idl */,
@@ -29380,6 +29383,7 @@
 				E4AE7C1917D232350009FB31 /* ElementAncestorIterator.h */,
 				E440AA951C68420800A265CC /* ElementAndTextDescendantIterator.h */,
 				E46A2B1D17CA76B1000DBCD8 /* ElementChildIterator.h */,
+				7CA55FCA252417A70031F452 /* ElementContentEditable.idl */,
 				313BCE1B235E3BDB00FC39E5 /* ElementContext.h */,
 				B5B7A16F17C1080600E4AA0A /* ElementData.cpp */,
 				B5B7A16E17C1048000E4AA0A /* ElementData.h */,

Modified: trunk/Source/WebCore/dom/Element.idl (267892 => 267893)


--- trunk/Source/WebCore/dom/Element.idl	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/Source/WebCore/dom/Element.idl	2020-10-02 20:30:27 UTC (rev 267893)
@@ -147,7 +147,6 @@
 Element includes AriaAttributes;
 Element includes Animatable;
 Element includes ChildNode;
-Element includes DocumentAndElementEventHandlers;
 Element includes NonDocumentTypeChildNode;
 Element includes ParentNode;
 Element includes Slotable;

Added: trunk/Source/WebCore/dom/ElementContentEditable.idl (0 => 267893)


--- trunk/Source/WebCore/dom/ElementContentEditable.idl	                        (rev 0)
+++ trunk/Source/WebCore/dom/ElementContentEditable.idl	2020-10-02 20:30:27 UTC (rev 267893)
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2020 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+// https://html.spec.whatwg.org/#elementcontenteditable
+interface mixin ElementContentEditable {
+    [CEReactions] attribute DOMString contentEditable;
+    [CEReactions, EnabledBySetting=EnterKeyHint] attribute DOMString enterKeyHint;
+    readonly attribute boolean isContentEditable;
+    [CEReactions] attribute DOMString inputMode;
+};

Modified: trunk/Source/WebCore/html/HTMLBodyElement.idl (267892 => 267893)


--- trunk/Source/WebCore/html/HTMLBodyElement.idl	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/Source/WebCore/html/HTMLBodyElement.idl	2020-10-02 20:30:27 UTC (rev 267893)
@@ -36,13 +36,10 @@
     [NotEnumerable, WindowEventHandler] attribute EventHandler onload;
     [NotEnumerable, WindowEventHandler] attribute EventHandler onresize;
     [NotEnumerable, WindowEventHandler] attribute EventHandler onscroll;
-
     [NotEnumerable, WindowEventHandler, Conditional=MOUSE_FORCE_EVENTS] attribute EventHandler onwebkitmouseforcechanged;
     [NotEnumerable, WindowEventHandler, Conditional=MOUSE_FORCE_EVENTS] attribute EventHandler onwebkitmouseforcedown;
     [NotEnumerable, WindowEventHandler, Conditional=MOUSE_FORCE_EVENTS] attribute EventHandler onwebkitmouseforcewillbegin;
     [NotEnumerable, WindowEventHandler, Conditional=MOUSE_FORCE_EVENTS] attribute EventHandler onwebkitmouseforceup;
-
-    // Unique to Document and HTMLBodyElement
     [NotEnumerable, DocumentEventHandler] attribute EventHandler onselectionchange;
 };
 

Added: trunk/Source/WebCore/html/HTMLElement+CSSOMView.idl (0 => 267893)


--- trunk/Source/WebCore/html/HTMLElement+CSSOMView.idl	                        (rev 0)
+++ trunk/Source/WebCore/html/HTMLElement+CSSOMView.idl	2020-10-02 20:30:27 UTC (rev 267893)
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2020 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+// https://drafts.csswg.org/cssom-view/#extensions-to-the-htmlelement-interface
+partial interface HTMLElement {
+    [ImplementedAs=offsetParentForBindings] readonly attribute Element? offsetParent;
+    // FIXME: 'offsetTop' should be of type 'long'.
+    [ImplementedAs=offsetTopForBindings] readonly attribute double offsetTop;
+    // FIXME: 'offsetLeft' should be of type 'long'.
+    [ImplementedAs=offsetLeftForBindings] readonly attribute double offsetLeft;
+    // FIXME: 'offsetWidth' should be of type 'long'.
+    readonly attribute double offsetWidth;
+    // FIXME: 'offsetHeight' should be of type 'long'.
+    readonly attribute double offsetHeight;
+};

Modified: trunk/Source/WebCore/html/HTMLElement.idl (267892 => 267893)


--- trunk/Source/WebCore/html/HTMLElement.idl	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/Source/WebCore/html/HTMLElement.idl	2020-10-02 20:30:27 UTC (rev 267893)
@@ -26,50 +26,39 @@
 ] interface HTMLElement : Element {
     [Custom] constructor();
 
-    // Metadata attributes.
+    // metadata attributes
     [CEReactions, Reflect] attribute DOMString title;
     [CEReactions, Reflect] attribute DOMString lang;
     [CEReactions] attribute boolean translate;
     [CEReactions] attribute DOMString dir;
 
-    // User interaction.
+    // user interaction
     [CEReactions, Reflect] attribute boolean hidden;
     undefined click();
     [CEReactions, Reflect] attribute DOMString accessKey;
     readonly attribute DOMString accessKeyLabel;
     [CEReactions] attribute boolean draggable;
-    // [CEReactions] attribute HTMLMenuElement? contextMenu; // FIXME: Not supported.
     [CEReactions] attribute boolean spellcheck;
-    // undefined forceSpellCheck(); // FIXME: Not supported.
+    // FIXME: 'autocapitalize' should not be [LegacyNullToEmptyString].
+    [Conditional=AUTOCAPITALIZE, CEReactions] attribute [LegacyNullToEmptyString] DOMString autocapitalize;
 
     [CEReactions] attribute [LegacyNullToEmptyString] DOMString innerText;
 
-    // FIXME: Should be in a separate ElementContentEditable interface.
-    // https://html.spec.whatwg.org/#elementcontenteditable
-    [CEReactions] attribute DOMString contentEditable;
-    readonly attribute boolean isContentEditable;
+    // FIXME: Implement 'attachInternals'.
+    // ElementInternals attachInternals();
 
-    // Extensions from CSSOM-view specification (https://drafts.csswg.org/cssom-view/#extensions-to-the-htmlelement-interface).
-    [ImplementedAs=offsetParentForBindings] readonly attribute Element? offsetParent;
-    [ImplementedAs=offsetTopForBindings] readonly attribute double offsetTop; // FIXME: Should be of type long.
-    [ImplementedAs=offsetLeftForBindings] readonly attribute double offsetLeft; // FIXME: Should be of type long.
-    readonly attribute double offsetWidth; // FIXME: Should be of type long.
-    readonly attribute double offsetHeight; // FIXME: Should be of type long.
-
-    // Non Standard but may get added to the specification (https://github.com/whatwg/html/issues/668).
+    // Non-standard: IE extension. May get added to the specification (https://github.com/whatwg/html/issues/668).
     [CEReactions] attribute [LegacyNullToEmptyString] DOMString outerText;
 
-    // iOS autocorrect / autocapitalization extensions.
+    // Non-standard: iOS extension.
     [Conditional=AUTOCORRECT, CEReactions] attribute boolean autocorrect;
-    [Conditional=AUTOCAPITALIZE, CEReactions] attribute [LegacyNullToEmptyString] DOMString autocapitalize;
 
-    // FIXME: We are the only browser to support this now that Blink dropped it (http://crbug.com/688943).
+    // Non-standard: We are the only browser to support this now that Blink dropped it (http://crbug.com/688943).
     [CEReactions, Reflect] attribute DOMString webkitdropzone;
-
-    attribute DOMString inputMode;
-    [EnabledBySetting=EnterKeyHint] attribute DOMString enterKeyHint;
 };
 
-HTMLElement includes ElementCSSInlineStyle;
 HTMLElement includes GlobalEventHandlers;
+HTMLElement includes DocumentAndElementEventHandlers;
+HTMLElement includes ElementContentEditable;
 HTMLElement includes HTMLOrForeignElement;
+HTMLElement includes ElementCSSInlineStyle;

Modified: trunk/Source/WebCore/html/HTMLFrameSetElement.idl (267892 => 267893)


--- trunk/Source/WebCore/html/HTMLFrameSetElement.idl	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/Source/WebCore/html/HTMLFrameSetElement.idl	2020-10-02 20:30:27 UTC (rev 267893)
@@ -24,6 +24,7 @@
     [CEReactions=NotNeeded, Reflect] attribute DOMString cols;
     [CEReactions=NotNeeded, Reflect] attribute DOMString rows;
 
+    // Non-standard
     [NotEnumerable, WindowEventHandler] attribute EventHandler onblur;
     [NotEnumerable, WindowEventHandler] attribute EventHandler onerror;
     [NotEnumerable, WindowEventHandler] attribute EventHandler onfocus;

Modified: trunk/Source/WebCore/mathml/MathMLElement.idl (267892 => 267893)


--- trunk/Source/WebCore/mathml/MathMLElement.idl	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/Source/WebCore/mathml/MathMLElement.idl	2020-10-02 20:30:27 UTC (rev 267893)
@@ -30,7 +30,7 @@
 ] interface MathMLElement : Element {
 };
 
-MathMLElement includes ElementCSSInlineStyle;
 MathMLElement includes GlobalEventHandlers;
 MathMLElement includes DocumentAndElementEventHandlers;
 MathMLElement includes HTMLOrForeignElement;
+MathMLElement includes ElementCSSInlineStyle;

Modified: trunk/Source/WebCore/svg/SVGElement.idl (267892 => 267893)


--- trunk/Source/WebCore/svg/SVGElement.idl	2020-10-02 19:23:16 UTC (rev 267892)
+++ trunk/Source/WebCore/svg/SVGElement.idl	2020-10-02 20:30:27 UTC (rev 267893)
@@ -31,6 +31,7 @@
     readonly attribute SVGElement? viewportElement;
 };
 
-SVGElement includes ElementCSSInlineStyle;
 SVGElement includes GlobalEventHandlers;
+SVGElement includes DocumentAndElementEventHandlers;
 SVGElement includes HTMLOrForeignElement;
+SVGElement includes ElementCSSInlineStyle;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to