Add support for HTMLDataElement
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Jan 2016 23:21:30 +0000 (23:21 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Jan 2016 23:21:30 +0000 (23:21 +0000)
https://bugs.webkit.org/show_bug.cgi?id=153459

Reviewed by Ryosuke Niwa.

LayoutTests/imported/w3c:

Rebaseline existing W3C tests now that more checks are passing.

* web-platform-tests/dom/nodes/Node-cloneNode-expected.txt:
* web-platform-tests/html/dom/interfaces-expected.txt:
* web-platform-tests/html/semantics/interfaces-expected.txt:

Source/WebCore:

Add support for HTMLDataElement:
https://html.spec.whatwg.org/multipage/semantics.html#the-data-element

Firefox already supports it.

No new tests, already covered by existing tests.

* CMakeLists.txt:
* DerivedSources.cpp:
* DerivedSources.make:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* html/HTMLDataElement.cpp: Added.
(WebCore::HTMLDataElement::create):
(WebCore::HTMLDataElement::HTMLDataElement):
* html/HTMLDataElement.h: Added.
* html/HTMLDataElement.idl: Added.
* html/HTMLElementsAllInOne.cpp:
* html/HTMLTagNames.in:

LayoutTests:

Rebaseline existing test now that HTMLDataElement is exposed on the
global Window object.

* platform/efl/js/dom/global-constructors-attributes-expected.txt:
* platform/gtk/js/dom/global-constructors-attributes-expected.txt:
* platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt:
* platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt:
* platform/mac/js/dom/global-constructors-attributes-expected.txt:
* platform/win/js/dom/global-constructors-attributes-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@195627 268f45cc-cd09-0410-ab3c-d52691b4dbfc

23 files changed:
LayoutTests/ChangeLog
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-cloneNode-expected.txt
LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt
LayoutTests/imported/w3c/web-platform-tests/html/semantics/interfaces-expected.txt
LayoutTests/platform/efl/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/gtk/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/win/js/dom/global-constructors-attributes-expected.txt
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.cpp
Source/WebCore/DerivedSources.make
Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/html/HTMLDataElement.cpp [new file with mode: 0644]
Source/WebCore/html/HTMLDataElement.h [new file with mode: 0644]
Source/WebCore/html/HTMLDataElement.idl [new file with mode: 0644]
Source/WebCore/html/HTMLElementsAllInOne.cpp
Source/WebCore/html/HTMLTagNames.in

index 5b8d322..327233d 100644 (file)
@@ -1,3 +1,20 @@
+2016-01-26  Chris Dumez  <cdumez@apple.com>
+
+        Add support for HTMLDataElement
+        https://bugs.webkit.org/show_bug.cgi?id=153459
+
+        Reviewed by Ryosuke Niwa.
+
+        Rebaseline existing test now that HTMLDataElement is exposed on the
+        global Window object.
+
+        * platform/efl/js/dom/global-constructors-attributes-expected.txt:
+        * platform/gtk/js/dom/global-constructors-attributes-expected.txt:
+        * platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt:
+        * platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt:
+        * platform/mac/js/dom/global-constructors-attributes-expected.txt:
+        * platform/win/js/dom/global-constructors-attributes-expected.txt:
+
 2016-01-26  Commit Queue  <commit-queue@webkit.org>
 
         Unreviewed, rolling out r195610.
index 5154242..487f423 100644 (file)
@@ -1,5 +1,18 @@
 2016-01-26  Chris Dumez  <cdumez@apple.com>
 
+        Add support for HTMLDataElement
+        https://bugs.webkit.org/show_bug.cgi?id=153459
+
+        Reviewed by Ryosuke Niwa.
+
+        Rebaseline existing W3C tests now that more checks are passing.
+
+        * web-platform-tests/dom/nodes/Node-cloneNode-expected.txt:
+        * web-platform-tests/html/dom/interfaces-expected.txt:
+        * web-platform-tests/html/semantics/interfaces-expected.txt:
+
+2016-01-26  Chris Dumez  <cdumez@apple.com>
+
         First parameter to window.showModalDialog() should be mandatory
         https://bugs.webkit.org/show_bug.cgi?id=153436
 
index 7616bd9..57991ff 100644 (file)
@@ -1,5 +1,5 @@
 
-FAIL Node.cloneNode Can't find variable: HTMLDataElement
+FAIL Node.cloneNode Can't find variable: HTMLDataListElement
 PASS createElement(a) 
 PASS createElement(abbr) 
 PASS createElement(acronym) 
@@ -26,6 +26,7 @@ PASS createElement(cite)
 PASS createElement(code) 
 PASS createElement(col) 
 PASS createElement(colgroup) 
+PASS createElement(data) 
 PASS createDocumentFragment 
 PASS createTextNode 
 PASS createComment 
index 6bf2c90..3d2b364 100644 (file)
@@ -223,6 +223,7 @@ CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'port' on a no
 CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'pathname' on a non-HTMLAnchorElement object.
 CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'search' on a non-HTMLAnchorElement object.
 CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'hash' on a non-HTMLAnchorElement object.
+CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'value' on a non-HTMLDataElement object.
 CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'dateTime' on a non-HTMLTimeElement object.
 CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'clear' on a non-HTMLBRElement object.
 CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'cite' on a non-HTMLModElement object.
@@ -2738,15 +2739,17 @@ PASS HTMLAnchorElement interface: document.createElement("a") must inherit prope
 PASS HTMLAnchorElement interface: document.createElement("a") must inherit property "pathname" with the proper type (21) 
 PASS HTMLAnchorElement interface: document.createElement("a") must inherit property "search" with the proper type (22) 
 PASS HTMLAnchorElement interface: document.createElement("a") must inherit property "hash" with the proper type (23) 
-FAIL HTMLDataElement interface: existence and properties of interface object assert_own_property: self does not have own property "HTMLDataElement" expected property "HTMLDataElement" missing
-FAIL HTMLDataElement interface object length assert_own_property: self does not have own property "HTMLDataElement" expected property "HTMLDataElement" missing
-FAIL HTMLDataElement interface object name assert_own_property: self does not have own property "HTMLDataElement" expected property "HTMLDataElement" missing
-FAIL HTMLDataElement interface: existence and properties of interface prototype object assert_own_property: self does not have own property "HTMLDataElement" expected property "HTMLDataElement" missing
-FAIL HTMLDataElement interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "HTMLDataElement" expected property "HTMLDataElement" missing
-FAIL HTMLDataElement interface: attribute value assert_own_property: self does not have own property "HTMLDataElement" expected property "HTMLDataElement" missing
-FAIL HTMLDataElement must be primary interface of document.createElement("data") assert_own_property: self does not have own property "HTMLDataElement" expected property "HTMLDataElement" missing
-FAIL Stringification of document.createElement("data") assert_equals: class string of document.createElement("data") expected "[object HTMLDataElement]" but got "[object HTMLUnknownElement]"
-FAIL HTMLDataElement interface: document.createElement("data") must inherit property "value" with the proper type (0) assert_inherits: property "value" not found in prototype chain
+FAIL HTMLDataElement interface: existence and properties of interface object assert_equals: class string of HTMLDataElement expected "[object Function]" but got "[object HTMLDataElementConstructor]"
+PASS HTMLDataElement interface object length 
+PASS HTMLDataElement interface object name 
+PASS HTMLDataElement interface: existence and properties of interface prototype object 
+FAIL HTMLDataElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLDataElement.prototype.constructor is not writable expected true got false
+FAIL HTMLDataElement interface: attribute value assert_throws: getting property on prototype object must throw TypeError function "function () {
+    [native code]
+}" did not throw
+PASS HTMLDataElement must be primary interface of document.createElement("data") 
+PASS Stringification of document.createElement("data") 
+PASS HTMLDataElement interface: document.createElement("data") must inherit property "value" with the proper type (0) 
 FAIL HTMLTimeElement interface: existence and properties of interface object assert_equals: class string of HTMLTimeElement expected "[object Function]" but got "[object HTMLTimeElementConstructor]"
 PASS HTMLTimeElement interface object length 
 PASS HTMLTimeElement interface object name 
index 2db728e..abfe9a4 100644 (file)
@@ -259,8 +259,8 @@ PASS Interfaces for nextid
 PASS Interfaces for NEXTID 
 PASS Interfaces for bdi 
 PASS Interfaces for BDI 
-FAIL Interfaces for data assert_equals: Element data should have HTMLDataElement as its primary interface. expected "[object HTMLDataElement]" but got "[object HTMLUnknownElement]"
-FAIL Interfaces for DATA assert_equals: Element DATA should have HTMLDataElement as its primary interface. expected "[object HTMLDataElement]" but got "[object HTMLUnknownElement]"
+PASS Interfaces for data 
+PASS Interfaces for DATA 
 PASS Interfaces for a 
 PASS Interfaces for A 
 PASS Interfaces for area 
index 908964a..1689f3a 100644 (file)
@@ -433,6 +433,11 @@ PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').hasOwnProperty(
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').configurable is true
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').value is HTMLDataElement
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataListElement').value is HTMLDataListElement
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataListElement').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataListElement').hasOwnProperty('set') is false
index 88c0164..439529d 100644 (file)
@@ -438,6 +438,11 @@ PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').hasOwnProperty(
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').configurable is true
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').value is HTMLDataElement
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDetailsElement').value is HTMLDetailsElement
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDetailsElement').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDetailsElement').hasOwnProperty('set') is false
index 93ebf29..7319b04 100644 (file)
@@ -433,6 +433,11 @@ PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').hasOwnProperty(
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').configurable is true
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').value is HTMLDataElement
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDetailsElement').value is HTMLDetailsElement
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDetailsElement').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDetailsElement').hasOwnProperty('set') is false
index 49b3ee6..5d936dd 100644 (file)
@@ -433,6 +433,11 @@ PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').hasOwnProperty(
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').configurable is true
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').value is HTMLDataElement
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDetailsElement').value is HTMLDetailsElement
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDetailsElement').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDetailsElement').hasOwnProperty('set') is false
index 954bd6b..6859a6c 100644 (file)
@@ -433,6 +433,11 @@ PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').hasOwnProperty(
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').configurable is true
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').value is HTMLDataElement
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDetailsElement').value is HTMLDetailsElement
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDetailsElement').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDetailsElement').hasOwnProperty('set') is false
index 7ea2a1c..44f9234 100644 (file)
@@ -358,6 +358,11 @@ PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').hasOwnProperty(
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDListElement').configurable is true
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').value is HTMLDataElement
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'HTMLDataElement').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDetailsElement').value is HTMLDetailsElement
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDetailsElement').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'HTMLDetailsElement').hasOwnProperty('set') is false
index 3a7f401..63b7e4d 100644 (file)
@@ -449,6 +449,7 @@ set(WebCore_NON_SVG_IDL_FILES
     html/HTMLCanvasElement.idl
     html/HTMLCollection.idl
     html/HTMLDListElement.idl
+    html/HTMLDataElement.idl
     html/HTMLDataListElement.idl
     html/HTMLDetailsElement.idl
     html/HTMLDirectoryElement.idl
@@ -1656,6 +1657,7 @@ set(WebCore_SOURCES
     html/HTMLCanvasElement.cpp
     html/HTMLCollection.cpp
     html/HTMLDListElement.cpp
+    html/HTMLDataElement.cpp
     html/HTMLDataListElement.cpp
     html/HTMLDetailsElement.cpp
     html/HTMLDirectoryElement.cpp
index 7c758cb..25c9c0d 100644 (file)
@@ -1,3 +1,31 @@
+2016-01-26  Chris Dumez  <cdumez@apple.com>
+
+        Add support for HTMLDataElement
+        https://bugs.webkit.org/show_bug.cgi?id=153459
+
+        Reviewed by Ryosuke Niwa.
+
+        Add support for HTMLDataElement:
+        https://html.spec.whatwg.org/multipage/semantics.html#the-data-element
+
+        Firefox already supports it.
+
+        No new tests, already covered by existing tests.
+
+        * CMakeLists.txt:
+        * DerivedSources.cpp:
+        * DerivedSources.make:
+        * WebCore.vcxproj/WebCore.vcxproj:
+        * WebCore.vcxproj/WebCore.vcxproj.filters:
+        * WebCore.xcodeproj/project.pbxproj:
+        * html/HTMLDataElement.cpp: Added.
+        (WebCore::HTMLDataElement::create):
+        (WebCore::HTMLDataElement::HTMLDataElement):
+        * html/HTMLDataElement.h: Added.
+        * html/HTMLDataElement.idl: Added.
+        * html/HTMLElementsAllInOne.cpp:
+        * html/HTMLTagNames.in:
+
 2016-01-26  Commit Queue  <commit-queue@webkit.org>
 
         Unreviewed, rolling out r195610.
index fd1cdf3..00f1902 100644 (file)
 #include "JSHTMLButtonElement.cpp"
 #include "JSHTMLCanvasElement.cpp"
 #include "JSHTMLCollection.cpp"
+#include "JSHTMLDataElement.cpp"
 #include "JSHTMLDataListElement.cpp"
 #include "JSHTMLDetailsElement.cpp"
 #include "JSHTMLDirectoryElement.cpp"
index 584ac42..da6aa32 100644 (file)
@@ -354,6 +354,7 @@ NON_SVG_BINDING_IDLS = \
     $(WebCore)/html/HTMLCanvasElement.idl \
     $(WebCore)/html/HTMLCollection.idl \
     $(WebCore)/html/HTMLDListElement.idl \
+    $(WebCore)/html/HTMLDataElement.idl \
     $(WebCore)/html/HTMLDataListElement.idl \
     $(WebCore)/html/HTMLDetailsElement.idl \
     $(WebCore)/html/HTMLDirectoryElement.idl \
index 5ba06d6..9059722 100644 (file)
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
     </ClCompile>
+    <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLDataElement.cpp">
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|Win32'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
+    </ClCompile>
     <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLDataListElement.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\html\HTMLCollection.cpp" />
+    <ClCompile Include="..\html\HTMLDataElement.cpp">
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|Win32'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
+    </ClCompile>
     <ClCompile Include="..\html\HTMLDataListElement.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
     <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLButtonElement.h" />
     <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLCanvasElement.h" />
     <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLCollection.h" />
+    <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLDataElement.h" />
     <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLDataListElement.h" />
     <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLDetailsElement.h" />
     <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLDirectoryElement.h" />
     <ClInclude Include="..\html\HTMLButtonElement.h" />
     <ClInclude Include="..\html\HTMLCanvasElement.h" />
     <ClInclude Include="..\html\HTMLCollection.h" />
+    <ClInclude Include="..\html\HTMLDataElement.h" />
     <ClInclude Include="..\html\HTMLDataListElement.h" />
     <ClInclude Include="..\html\HTMLDetailsElement.h" />
     <ClInclude Include="..\html\HTMLDirectoryElement.h" />
index 681016b..18e49ca 100644 (file)
     <ClCompile Include="..\html\HTMLCollection.cpp">
       <Filter>html</Filter>
     </ClCompile>
+    <ClCompile Include="..\html\HTMLDataElement.cpp">
+      <Filter>html</Filter>
+    </ClCompile>
     <ClCompile Include="..\html\HTMLDataListElement.cpp">
       <Filter>html</Filter>
     </ClCompile>
     <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLCollection.cpp">
       <Filter>DerivedSources</Filter>
     </ClCompile>
+    <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLDataElement.cpp">
+      <Filter>DerivedSources</Filter>
+    </ClCompile>
     <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLDataListElement.cpp">
       <Filter>DerivedSources</Filter>
     </ClCompile>
     <ClInclude Include="..\html\HTMLCollection.h">
       <Filter>html</Filter>
     </ClInclude>
+    <ClInclude Include="..\html\HTMLDataElement.h">
+      <Filter>html</Filter>
+    </ClInclude>
     <ClInclude Include="..\html\HTMLDataListElement.h">
       <Filter>html</Filter>
     </ClInclude>
     <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLCollection.h">
       <Filter>DerivedSources</Filter>
     </ClInclude>
+    <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLDataElement.h">
+      <Filter>DerivedSources</Filter>
+    </ClInclude>
     <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLDataListElement.h">
       <Filter>DerivedSources</Filter>
     </ClInclude>
index 65191d3..faf6487 100644 (file)
                830519961BB0F11000F3772E /* HTMLTimeElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 830519931BB0F0E700F3772E /* HTMLTimeElement.h */; };
                8306EFF11B8BCEA50031D032 /* NativeNodeFilter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8306EFF01B8BCE7C0031D032 /* NativeNodeFilter.cpp */; };
                830784B21C52EE2C00104D1D /* XMLDocument.h in Headers */ = {isa = PBXBuildFile; fileRef = 830784B11C52EE1900104D1D /* XMLDocument.h */; settings = {ATTRIBUTES = (Private, ); }; };
+               83120C701C56F3F6001CB112 /* HTMLDataElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 831D1F291C56ECA000F5F6C0 /* HTMLDataElement.cpp */; };
+               83120C711C56F3FB001CB112 /* HTMLDataElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 834B86A71C56E83A00F3F0E3 /* HTMLDataElement.h */; };
                832B843419D8E55100B26055 /* SVGAnimateElementBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 832B843319D8E55100B26055 /* SVGAnimateElementBase.h */; };
                832B843619D8E57400B26055 /* SVGAnimateElementBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 832B843519D8E57400B26055 /* SVGAnimateElementBase.cpp */; };
                8348BFAB1B85729800912F36 /* ClassCollection.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8348BFA91B85729500912F36 /* ClassCollection.cpp */; };
                8358CB6F1C53277200E0C2D8 /* JSXMLDocument.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83F570AE1C53268E007FD6CB /* JSXMLDocument.cpp */; };
                8358CB701C53277500E0C2D8 /* JSXMLDocument.h in Headers */ = {isa = PBXBuildFile; fileRef = 83F570AD1C53268E007FD6CB /* JSXMLDocument.h */; };
                835D363719FF6193004C93AB /* StyleBuilderCustom.h in Headers */ = {isa = PBXBuildFile; fileRef = 835D363619FF6193004C93AB /* StyleBuilderCustom.h */; };
+               8367587E1C56E99B008A1087 /* JSHTMLDataElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 834B86A91C56E93E00F3F0E3 /* JSHTMLDataElement.cpp */; };
+               8367587F1C56E99B008A1087 /* JSHTMLDataElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 834B86A81C56E93E00F3F0E3 /* JSHTMLDataElement.h */; };
                836BAD211BD1CA670037356A /* HTMLTableHeaderCellElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 836BAD1F1BD1CA670037356A /* HTMLTableHeaderCellElement.h */; };
                836BAD221BD1CA670037356A /* HTMLTableDataCellElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 836BAD201BD1CA670037356A /* HTMLTableDataCellElement.h */; };
                836CB1F61BD1E41800AF1591 /* JSHTMLTableHeaderCellElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 836CB1F21BD1E41800AF1591 /* JSHTMLTableHeaderCellElement.h */; };
                8306EFF01B8BCE7C0031D032 /* NativeNodeFilter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NativeNodeFilter.cpp; sourceTree = "<group>"; };
                830784B01C52EE1900104D1D /* XMLDocument.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = XMLDocument.idl; sourceTree = "<group>"; };
                830784B11C52EE1900104D1D /* XMLDocument.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XMLDocument.h; sourceTree = "<group>"; };
+               831D1F291C56ECA000F5F6C0 /* HTMLDataElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLDataElement.cpp; sourceTree = "<group>"; };
                832B843319D8E55100B26055 /* SVGAnimateElementBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVGAnimateElementBase.h; sourceTree = "<group>"; };
                832B843519D8E57400B26055 /* SVGAnimateElementBase.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGAnimateElementBase.cpp; sourceTree = "<group>"; };
                8348BFA91B85729500912F36 /* ClassCollection.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ClassCollection.cpp; sourceTree = "<group>"; };
                8348BFAA1B85729500912F36 /* ClassCollection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ClassCollection.h; sourceTree = "<group>"; };
+               834B86A61C56E83A00F3F0E3 /* HTMLDataElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLDataElement.idl; sourceTree = "<group>"; };
+               834B86A71C56E83A00F3F0E3 /* HTMLDataElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLDataElement.h; sourceTree = "<group>"; };
+               834B86A81C56E93E00F3F0E3 /* JSHTMLDataElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSHTMLDataElement.h; sourceTree = "<group>"; };
+               834B86A91C56E93E00F3F0E3 /* JSHTMLDataElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLDataElement.cpp; sourceTree = "<group>"; };
                834DD4F31BE08989002C9C3E /* PageMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = PageMac.mm; sourceTree = "<group>"; };
                83520C7D1A71BFCC006BD2AA /* CSSFontFamily.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CSSFontFamily.h; sourceTree = "<group>"; };
                835D363619FF6193004C93AB /* StyleBuilderCustom.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StyleBuilderCustom.h; sourceTree = "<group>"; };
                                A8DF3FC9097FA0FB0052981B /* HTMLCollection.cpp */,
                                A8DF3FC8097FA0FB0052981B /* HTMLCollection.h */,
                                85DF2F690AA3C74300AD64C5 /* HTMLCollection.idl */,
+                               831D1F291C56ECA000F5F6C0 /* HTMLDataElement.cpp */,
+                               834B86A71C56E83A00F3F0E3 /* HTMLDataElement.h */,
+                               834B86A61C56E83A00F3F0E3 /* HTMLDataElement.idl */,
                                F5C041D70FFCA7CE00839D4A /* HTMLDataListElement.cpp */,
                                F5C041D80FFCA7CE00839D4A /* HTMLDataListElement.h */,
                                F5C041D90FFCA7CE00839D4A /* HTMLDataListElement.idl */,
                                938E666109F09B87008A48EC /* JSHTMLCanvasElement.h */,
                                BCCBAD3E0C18C14200CE890F /* JSHTMLCollection.cpp */,
                                BCCBAD3F0C18C14200CE890F /* JSHTMLCollection.h */,
+                               834B86A91C56E93E00F3F0E3 /* JSHTMLDataElement.cpp */,
+                               834B86A81C56E93E00F3F0E3 /* JSHTMLDataElement.h */,
                                F5C041E10FFCA96D00839D4A /* JSHTMLDataListElement.cpp */,
                                F5C041E20FFCA96D00839D4A /* JSHTMLDataListElement.h */,
                                D359D8BC129CA55C0006E5D2 /* JSHTMLDetailsElement.cpp */,
                                858C38A70AA8F20400B187A4 /* DOMRect.h in Headers */,
                                85E711D60AC5D5350053270F /* DOMRectInternal.h in Headers */,
                                5185FCB71BB4C7670012898F /* DOMRequestState.h in Headers */,
+                               8367587F1C56E99B008A1087 /* JSHTMLDataElement.h in Headers */,
                                855D358A0AD707310019AAC7 /* DOMRGBColor.h in Headers */,
                                BCD0FC4F0DBD720B00B2F630 /* DOMRGBColorInternal.h in Headers */,
                                2D9A246E15B9BD0000D34527 /* DOMSecurityPolicy.h in Headers */,
                                B2227A510D00BF220071B782 /* SVGNumberList.h in Headers */,
                                B2227A540D00BF220071B782 /* SVGPaint.h in Headers */,
                                B2227A570D00BF220071B782 /* SVGParserUtilities.h in Headers */,
+                               83120C711C56F3FB001CB112 /* HTMLDataElement.h in Headers */,
                                2D3A0E3613A7D76100E85AF0 /* SVGParsingError.h in Headers */,
                                84C6784D1214814700A92902 /* SVGPathBlender.h in Headers */,
                                8476C9EB11DF6A2900555B02 /* SVGPathBuilder.h in Headers */,
                                BC772E16133162C2001EC9CE /* CSSLineBoxContainValue.cpp in Sources */,
                                A80E6CFC0A1989CA007FB8C5 /* CSSMediaRule.cpp in Sources */,
                                314BE3A31B30F6D100141982 /* CSSNamedImageValue.cpp in Sources */,
+                               8367587E1C56E99B008A1087 /* JSHTMLDataElement.cpp in Sources */,
                                F98FFF4411A2676200F548E8 /* CSSOMUtils.cpp in Sources */,
                                A80E6CF50A1989CA007FB8C5 /* CSSPageRule.cpp in Sources */,
                                BC772B3D0C4EA91E0083285F /* CSSParser.cpp in Sources */,
                                0FE5FBD61C3DD51E0007A2CA /* DisplayListRecorder.cpp in Sources */,
                                0FE5FBD81C3DD51E0007A2CA /* DisplayListReplayer.cpp in Sources */,
                                49FC7A501444AF5F00A5D864 /* DisplayRefreshMonitor.cpp in Sources */,
+                               83120C701C56F3F6001CB112 /* HTMLDataElement.cpp in Sources */,
                                2D29ECC5192ECC8300984B78 /* DisplayRefreshMonitorClient.cpp in Sources */,
                                0F97A658155DA81E00FADD4C /* DisplayRefreshMonitorIOS.mm in Sources */,
                                49AF2D6C14435D210016A784 /* DisplayRefreshMonitorMac.cpp in Sources */,
diff --git a/Source/WebCore/html/HTMLDataElement.cpp b/Source/WebCore/html/HTMLDataElement.cpp
new file mode 100644 (file)
index 0000000..6a9ac1a
--- /dev/null
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2016 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.
+ */
+
+#include "config.h"
+#include "HTMLDataElement.h"
+
+#include "HTMLNames.h"
+
+namespace WebCore {
+
+using namespace HTMLNames;
+
+Ref<HTMLDataElement> HTMLDataElement::create(const QualifiedName& tagName, Document& document)
+{
+    return adoptRef(*new HTMLDataElement(tagName, document));
+}
+
+inline HTMLDataElement::HTMLDataElement(const QualifiedName& tagName, Document& document)
+    : HTMLElement(tagName, document)
+{
+    ASSERT(hasTagName(dataTag));
+}
+
+} // namespace WebCore.
diff --git a/Source/WebCore/html/HTMLDataElement.h b/Source/WebCore/html/HTMLDataElement.h
new file mode 100644 (file)
index 0000000..aa1afa2
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2016 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.
+ */
+
+#ifndef HTMLDataElement_h
+#define HTMLDataElement_h
+
+#include "HTMLElement.h"
+
+namespace WebCore {
+
+class HTMLDataElement : public HTMLElement {
+public:
+    static Ref<HTMLDataElement> create(const QualifiedName&, Document&);
+
+private:
+    HTMLDataElement(const QualifiedName&, Document&);
+};
+
+}
+
+#endif // HTMLDataElement_h
diff --git a/Source/WebCore/html/HTMLDataElement.idl b/Source/WebCore/html/HTMLDataElement.idl
new file mode 100644 (file)
index 0000000..52ef9fd
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2016 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.
+ */
+
+interface HTMLDataElement : HTMLElement {
+      [Reflect] attribute DOMString value;
+};
index 0ac096d..a2b433a 100644 (file)
@@ -45,6 +45,7 @@
 #include "HTMLBodyElement.cpp"
 #include "HTMLButtonElement.cpp"
 #include "HTMLCanvasElement.cpp"
+#include "HTMLDataElement.cpp"
 #include "HTMLDataListElement.cpp"
 #include "HTMLDetailsElement.cpp"
 #include "HTMLDListElement.cpp"
index 39456cf..151fa17 100644 (file)
@@ -33,6 +33,7 @@ col interfaceName=HTMLTableColElement
 colgroup interfaceName=HTMLTableColElement
 command interfaceName=HTMLElement
 webkitShadowContent interfaceName=HTMLElement, noConstructor
+data
 datalist interfaceName=HTMLDataListElement, conditional=DATALIST_ELEMENT
 dd interfaceName=HTMLElement
 del interfaceName=HTMLModElement