OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved. |
3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> | 3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
21 callback CustomElementConstructor = Element (); | 21 callback CustomElementConstructor = Element (); |
22 | 22 |
23 typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext; | 23 // https://html.spec.whatwg.org/#the-document-object |
| 24 enum DocumentReadyState { "loading", "interactive", "complete" }; |
24 | 25 |
25 [ | 26 // http://www.w3.org/TR/page-visibility/#VisibilityState |
26 SpecialWrapFor=(HTMLDocument,XMLDocument) | 27 enum VisibilityState { "hidden", "visible", "prerender", "unloaded" }; |
27 ] interface Document : Node { | |
28 | 28 |
29 // DOM Level 1 Core | 29 // https://dom.spec.whatwg.org/#interface-document |
30 readonly attribute DocumentType doctype; | |
31 readonly attribute DOMImplementation implementation; | |
32 readonly attribute Element documentElement; | |
33 | 30 |
34 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl
ement(DOMString tagName); | 31 // FIXME: Document should have a constructor. crbug.com/238234 |
35 DocumentFragment createDocumentFragment(); | 32 interface Document : Node { |
36 Text createTextNode(DOMString data); | 33 [SameObject] readonly attribute DOMImplementation implementation; |
37 Comment createComment(DOMString data); | 34 readonly attribute DOMString URL; |
38 [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createC
DATASection([Default=Undefined] optional DOMString data); // Removed from DOM4. | 35 // FIXME: documentURI should not be nullable. |
39 [RaisesException] ProcessingInstruction createProcessingInstruction(DOMStrin
g target, DOMString data); | 36 [ImplementedAs=url] readonly attribute DOMString? documentURI; |
40 [RaisesException, MeasureAs=DocumentCreateAttribute] Attr createAttribute([D
efault=Undefined] optional DOMString name); // Removed from DOM4. | 37 readonly attribute DOMString origin; |
41 [DartNoAutoScope] HTMLCollection getElementsByTagName(DOMString localName); | 38 readonly attribute DOMString compatMode; |
42 | 39 |
43 // Introduced in DOM Level 2: | 40 readonly attribute DOMString characterSet; |
| 41 [MeasureAs=DocumentInputEncoding, ImplementedAs=characterSet] readonly attri
bute DOMString inputEncoding; // legacy alias of .characterSet |
| 42 readonly attribute DOMString contentType; |
44 | 43 |
45 [CustomElementCallbacks, RaisesException, TypeChecking=Interface] Node impor
tNode(Node node, optional boolean deep = false); | 44 readonly attribute DocumentType? doctype; |
46 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString?
namespaceURI, DOMString qualifiedName); | 45 readonly attribute Element? documentElement; |
47 [RaisesException, DeprecateAs=DocumentCreateAttributeNS] Attr createAttribut
eNS([Default=Undefined] optional DOMString? namespaceURI, | 46 HTMLCollection getElementsByTagName(DOMString localName); |
48
[Default=Undefined] optional DOMString? qualifiedName); // Removed from DOM4
. | |
49 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc
alName); | 47 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc
alName); |
50 [PerWorldBindings, DartNoAutoScope] Element getElementById(DOMString element
Id); | 48 HTMLCollection getElementsByClassName(DOMString classNames); |
51 | 49 |
52 // DOM Level 3 Core | 50 [NewObject, CustomElementCallbacks, PerWorldBindings, RaisesException] Eleme
nt createElement(DOMString localName); |
| 51 [NewObject, CustomElementCallbacks, RaisesException] Element createElementNS
(DOMString? namespaceURI, DOMString qualifiedName); |
| 52 [NewObject] DocumentFragment createDocumentFragment(); |
| 53 [NewObject] Text createTextNode(DOMString data); |
| 54 [NewObject] Comment createComment(DOMString data); |
| 55 [NewObject, RaisesException] ProcessingInstruction createProcessingInstructi
on(DOMString target, DOMString data); |
53 | 56 |
54 [MeasureAs=DocumentInputEncoding] readonly attribute DOMString? inputEncodin
g; // Removed from DOM4. | 57 [NewObject, CustomElementCallbacks, RaisesException, TypeChecking=Interface]
Node importNode(Node node, optional boolean deep = false); |
55 | |
56 [MeasureAs=DocumentXMLEncoding] readonly attribute DOMString? xmlEncoding; /
/ Removed from DOM4. | |
57 [RaisesException=Setter, MeasureAs=DocumentXMLVersion] attribute DOMString?
xmlVersion; // Removed from DOM4. | |
58 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean
xmlStandalone; // Removed from DOM4. | |
59 | |
60 [RaisesException, CustomElementCallbacks, TypeChecking=Interface] Node adopt
Node(Node node); | 58 [RaisesException, CustomElementCallbacks, TypeChecking=Interface] Node adopt
Node(Node node); |
61 | 59 |
62 [ImplementedAs=url] readonly attribute DOMString? documentURI; | 60 [NewObject, RaisesException, MeasureAs=DocumentCreateAttribute] Attr createA
ttribute(DOMString localName); |
| 61 [NewObject, RaisesException, MeasureAs=DocumentCreateAttributeNS] Attr creat
eAttributeNS(DOMString? namespaceURI, DOMString qualifiedName); |
63 | 62 |
64 // DOM Level 2 Events (DocumentEvents interface) | 63 [NewObject, RaisesException] Event createEvent(DOMString eventType); |
65 | 64 |
66 [RaisesException] Event createEvent(DOMString eventType); | 65 [NewObject] Range createRange(); |
67 | 66 |
68 // DOM Level 2 Traversal and Range (DocumentRange interface) | 67 // NodeFilter.SHOW_ALL = 0xFFFFFFFF |
| 68 [NewObject, RaisesException, TypeChecking=Interface] NodeIterator createNode
Iterator(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional Nod
eFilter? filter = null); |
| 69 [NewObject, RaisesException, TypeChecking=Interface] TreeWalker createTreeWa
lker(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFil
ter? filter = null); |
69 | 70 |
70 Range createRange(); | 71 // FIXME: CDATASection has been removed from the spec. crbug.com/437205 |
| 72 [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createC
DATASection(DOMString data); |
71 | 73 |
72 // DOM Level 2 Traversal and Range (DocumentTraversal interface) | 74 // FIXME: xmlEncoding/xmlVersion/xmlStandalone have been removed from the sp
ec. |
| 75 [MeasureAs=DocumentXMLEncoding] readonly attribute DOMString? xmlEncoding; |
| 76 [RaisesException=Setter, MeasureAs=DocumentXMLVersion] attribute DOMString?
xmlVersion; |
| 77 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean
xmlStandalone; |
73 | 78 |
74 [RaisesException, TypeChecking=Interface] NodeIterator createNodeIterator(No
de root, | 79 // HTML |
75 op
tional unsigned long whatToShow = 0xFFFFFFFF, | 80 // https://html.spec.whatwg.org/#the-document-object |
76 op
tional NodeFilter? filter = null); | |
77 [RaisesException, TypeChecking=Interface] TreeWalker createTreeWalker(Node r
oot, | |
78 option
al unsigned long whatToShow = 0xFFFFFFFF, | |
79 option
al NodeFilter? filter = null); | |
80 | 81 |
81 // DOM Level 2 Abstract Views (DocumentView interface) | 82 // resource metadata management |
| 83 [PutForwards=href, Unforgeable] readonly attribute Location? location; |
| 84 [RaisesException=Setter] attribute DOMString domain; |
| 85 readonly attribute DOMString referrer; |
| 86 // FIXME: cookie should not have [TreatNullAs=NullString]. |
| 87 [TreatNullAs=NullString, RaisesException] attribute DOMString cookie; |
| 88 readonly attribute DOMString lastModified; |
| 89 readonly attribute DocumentReadyState readyState; |
82 | 90 |
83 [ImplementedAs=domWindow] readonly attribute Window defaultView; | 91 // DOM tree accessors |
| 92 // FIXME: title and dir should not have [TreatNullAs=NullString]. |
| 93 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString title; |
| 94 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString dir; |
| 95 [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings, TypeCheck
ing=Interface] attribute HTMLElement? body; |
| 96 readonly attribute HTMLHeadElement? head; |
| 97 [SameObject] readonly attribute HTMLCollection images; |
| 98 [SameObject] readonly attribute HTMLCollection embeds; |
| 99 [SameObject, ImplementedAs=embeds] readonly attribute HTMLCollection plugins
; |
| 100 [SameObject] readonly attribute HTMLCollection links; |
| 101 [SameObject] readonly attribute HTMLCollection forms; |
| 102 [SameObject] readonly attribute HTMLCollection scripts; |
| 103 [PerWorldBindings] NodeList getElementsByName(DOMString elementName); |
| 104 readonly attribute HTMLScriptElement? currentScript; |
84 | 105 |
85 // DOM Level 2 Style (DocumentStyle interface) | 106 // dynamic markup insertion |
| 107 // FIXME: There are two open() methods in the spec. |
| 108 [Custom, CustomElementCallbacks, RaisesException] void open(); |
| 109 [RaisesException] void close(); |
| 110 [CallWith=ActiveWindow, CustomElementCallbacks, RaisesException] void write(
DOMString... text); |
| 111 [CallWith=ActiveWindow, CustomElementCallbacks, RaisesException] void writel
n(DOMString... text); |
86 | 112 |
87 readonly attribute StyleSheetList styleSheets; | 113 // user interaction |
| 114 [ImplementedAs=domWindow] readonly attribute Window? defaultView; |
| 115 readonly attribute Element? activeElement; |
| 116 boolean hasFocus(); |
| 117 // FIXME: designMode should not have [TreatNullAs=NullString]. |
| 118 [TreatNullAs=NullString, CustomElementCallbacks, MeasureAs=DocumentDesignMod
e] attribute DOMString designMode; |
| 119 [CustomElementCallbacks, RaisesException] boolean execCommand(DOMString comm
andId, optional boolean showUI = false, optional DOMString value = ""); |
| 120 [RaisesException] boolean queryCommandEnabled(DOMString commandId); |
| 121 [RaisesException] boolean queryCommandIndeterm(DOMString commandId); |
| 122 [RaisesException] boolean queryCommandState(DOMString commandId); |
| 123 [RaisesException] boolean queryCommandSupported(DOMString commandId); |
| 124 [RaisesException] DOMString queryCommandValue(DOMString commandId); |
88 | 125 |
89 // DOM Level 2 Style (DocumentCSS interface) | 126 [LenientThis] attribute EventHandler onreadystatechange; |
90 | 127 |
91 CSSStyleDeclaration getOverrideStyle([Default=Undefined] optional Element el
ement, | 128 // HTML obsolete features |
92 [Default=Undefined] optional DOMString
pseudoElement); | 129 // https://html.spec.whatwg.org/#Document-partial |
93 | 130 |
94 // DOM 4 | 131 // FIXME: *Color are on HTMLDocument. |
95 readonly attribute DOMString contentType; | |
96 | 132 |
97 // Common extensions | 133 readonly attribute HTMLCollection anchors; |
98 [CustomElementCallbacks] | 134 readonly attribute HTMLCollection applets; |
99 boolean execCommand([Default=Undefined] optional DOMString comman
d, | |
100 [Default=Undefined] optional boolean userInte
rface, | |
101 [TreatUndefinedAs=NullString, Default=Undefin
ed] optional DOMString? value); | |
102 | 135 |
103 boolean queryCommandEnabled([Default=Undefined] optional DOMStrin
g command); | 136 // FIXME: clear(), captureEvents(), releaseEvents() and all are on HTMLDocum
ent. |
104 boolean queryCommandIndeterm([Default=Undefined] optional DOMStri
ng command); | |
105 boolean queryCommandState([Default=Undefined] optional DOMString
command); | |
106 boolean queryCommandSupported([Default=Undefined] optional DOMStr
ing command); | |
107 DOMString queryCommandValue([Default=Undefined] optional DOMString
command); | |
108 | 137 |
109 // Moved down from HTMLDocument | 138 // CSS Object Model (CSSOM) |
110 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin
g dir; | 139 // http://dev.w3.org/csswg/cssom/#extensions-to-the-document-interface |
111 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin
g designMode; | 140 [SameObject] readonly attribute StyleSheetList styleSheets; |
112 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin
g title; | 141 attribute DOMString? selectedStylesheetSet; |
113 readonly attribute DOMString referrer; | 142 readonly attribute DOMString? preferredStylesheetSet; |
114 [TreatNullAs=NullString, RaisesException=Setter] attribute DOMStrin
g domain; | |
115 readonly attribute DOMString URL; | |
116 | 143 |
117 [TreatNullAs=NullString, RaisesException] attribute DOMString cooki
e; | 144 // CSSOM View Module |
| 145 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-document-interface |
| 146 // FIXME: The x and y arguments should be of type double. |
| 147 Element? elementFromPoint(long x, long y); |
| 148 sequence<Element> elementsFromPoint(long x, long y); |
| 149 readonly attribute Element? scrollingElement; |
118 | 150 |
119 [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings, TypeCheck
ing=Interface, DartNoAutoScope] attribute HTMLElement? body; | 151 // Selection API |
| 152 // http://w3c.github.io/selection-api/#extensions-to-document-interface |
| 153 Selection? getSelection(); |
120 | 154 |
121 readonly attribute HTMLHeadElement head; | 155 // Pointer Lock |
122 readonly attribute HTMLCollection images; | 156 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions
-to-the-document-interface |
123 readonly attribute HTMLCollection applets; | 157 attribute EventHandler onpointerlockchange; |
124 readonly attribute HTMLCollection embeds; | 158 attribute EventHandler onpointerlockerror; |
125 [ImplementedAs=embeds] readonly attribute HTMLCollection plugins; | 159 [MeasureAs=DocumentPointerLockElement] readonly attribute Element? pointerLo
ckElement; |
126 readonly attribute HTMLCollection links; | 160 [MeasureAs=DocumentExitPointerLock] void exitPointerLock(); |
127 readonly attribute HTMLCollection forms; | |
128 readonly attribute HTMLCollection scripts; | |
129 readonly attribute HTMLCollection anchors; | |
130 readonly attribute DOMString lastModified; | |
131 | 161 |
132 [PerWorldBindings, DartNoAutoScope] NodeList getElementsByName([Default=Unde
fined] optional DOMString elementName); | 162 // Touch Events |
| 163 // http://rawgit.com/w3c/touch-events/v1-errata/touchevents.html#extensions-
to-the-document-interface |
| 164 // FIXME: The arguments should not be optional. |
| 165 [RuntimeEnabled=Touch, Measure] Touch createTouch([Default=Undefined] option
al Window window, |
| 166 [Default=Undefined] option
al EventTarget target, |
| 167 [Default=Undefined] option
al long identifier, |
| 168 [Default=Undefined] option
al unrestricted double pageX, |
| 169 [Default=Undefined] option
al unrestricted double pageY, |
| 170 [Default=Undefined] option
al unrestricted double screenX, |
| 171 [Default=Undefined] option
al unrestricted double screenY, |
| 172 [Default=Undefined] option
al unrestricted double radiusX, |
| 173 [Default=Undefined] option
al unrestricted double radiusY, |
| 174 [Default=Undefined] option
al unrestricted float rotationAngle, |
| 175 [Default=Undefined] option
al unrestricted float force); |
| 176 [RuntimeEnabled=Touch] TouchList createTouchList(Touch... touches); |
133 | 177 |
134 [PutForwards=href] readonly attribute Location location; | 178 // FIXME: The spec doesn't define these event handler attributes. |
| 179 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; |
| 180 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; |
| 181 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; |
| 182 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; |
135 | 183 |
136 // IE extensions | 184 // Custom Elements |
137 [MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined, TreatNullAs
=NullString] attribute DOMString charset; | 185 // http://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-in
terface-to-register |
| 186 // FIXME: The registerElement return type should be Function. |
| 187 [CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=Do
cumentRegisterElement] CustomElementConstructor registerElement(DOMString type,
optional ElementRegistrationOptions options); |
| 188 // http://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-in
terface-to-instantiate |
| 189 // FIXME: The typeExtension arguments should not be nullable. |
| 190 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl
ement(DOMString localName, DOMString? typeExtension); |
| 191 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString?
namespaceURI, DOMString qualifiedName, DOMString? typeExtension); |
| 192 |
| 193 // Page Visibility |
| 194 // http://www.w3.org/TR/page-visibility/#sec-document-interface |
| 195 readonly attribute boolean hidden; |
| 196 readonly attribute VisibilityState visibilityState; |
| 197 |
| 198 // Non-standard APIs |
| 199 [MeasureAs=DocumentCharset] readonly attribute DOMString charset; |
138 [MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] read
only attribute DOMString defaultCharset; | 200 [MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] read
only attribute DOMString defaultCharset; |
139 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyStat
e; | 201 [MeasureAs=DocumentCaretRangeFromPoint] Range caretRangeFromPoint([Default=U
ndefined] optional long x, [Default=Undefined] optional long y); |
| 202 [CallWith=ScriptState, DeprecateAs=DocumentGetCSSCanvasContext] any getCSSCa
nvasContext(DOMString contextId, DOMString name, long width, long height); |
140 | 203 |
141 Element elementFromPoint([Default=Undefined] optional long x, | 204 // Deprecated prefixed page visibility API. |
142 [Default=Undefined] optional long y); | 205 // TODO(davidben): This is a property so attaching a deprecation warning res
ults in false positives when outputting |
143 [MeasureAs=DocumentCaretRangeFromPoint] | 206 // document in the console. It's possible http://crbug.com/43394 will resolv
e this. |
144 Range caretRangeFromPoint([Default=Undefined] optional long x, | 207 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a
ttribute DOMString webkitVisibilityState; |
145 [Default=Undefined] optional long y); | 208 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute
boolean webkitHidden; |
146 | |
147 // Mozilla extensions | |
148 Selection getSelection(); | |
149 readonly attribute DOMString? characterSet; | |
150 | |
151 // WebKit extensions | |
152 | |
153 readonly attribute DOMString? preferredStylesheetSet; | |
154 attribute DOMString? selectedStylesheetSet; | |
155 | |
156 [MeasureAs=DocumentGetCSSCanvasContext] RenderingContext getCSSCanvasContext
(DOMString contextId, DOMString name, long width, long height); | |
157 | |
158 // HTML 5 | |
159 HTMLCollection getElementsByClassName(DOMString classNames); | |
160 readonly attribute Element activeElement; | |
161 boolean hasFocus(); | |
162 | |
163 readonly attribute DOMString compatMode; | |
164 | |
165 [MeasureAs=DocumentExitPointerLock] void exitPointerLock(); | |
166 [MeasureAs=DocumentPointerLockElement] readonly attribute Element pointerLoc
kElement; | |
167 | 209 |
168 // Event handler attributes | 210 // Event handler attributes |
169 attribute EventHandler onbeforecopy; | 211 attribute EventHandler onbeforecopy; |
170 attribute EventHandler onbeforecut; | 212 attribute EventHandler onbeforecut; |
171 attribute EventHandler onbeforepaste; | 213 attribute EventHandler onbeforepaste; |
172 attribute EventHandler oncopy; | 214 attribute EventHandler oncopy; |
173 attribute EventHandler oncut; | 215 attribute EventHandler oncut; |
174 attribute EventHandler onpaste; | 216 attribute EventHandler onpaste; |
175 attribute EventHandler onpointerlockchange; | |
176 attribute EventHandler onpointerlockerror; | |
177 attribute EventHandler onreadystatechange; | |
178 attribute EventHandler onsearch; | 217 attribute EventHandler onsearch; |
179 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; | 218 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; |
180 attribute EventHandler onselectionchange; | 219 attribute EventHandler onselectionchange; |
181 attribute EventHandler onselectstart; | 220 attribute EventHandler onselectstart; |
182 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; | |
183 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; | |
184 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; | |
185 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; | |
186 attribute EventHandler onwheel; | 221 attribute EventHandler onwheel; |
187 | |
188 [RuntimeEnabled=Touch] Touch createTouch([Default=Undefined] optional Window
window, | |
189 [Default=Undefined] optional EventT
arget target, | |
190 [Default=Undefined] optional long i
dentifier, | |
191 [Default=Undefined] optional double
pageX, | |
192 [Default=Undefined] optional double
pageY, | |
193 [Default=Undefined] optional double
screenX, | |
194 [Default=Undefined] optional double
screenY, | |
195 [Default=Undefined] optional double
webkitRadiusX, | |
196 [Default=Undefined] optional double
webkitRadiusY, | |
197 [Default=Undefined] optional float
webkitRotationAngle, | |
198 [Default=Undefined] optional float
webkitForce); | |
199 [RuntimeEnabled=Touch] TouchList createTouchList(Touch... touches); | |
200 | |
201 [CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=Do
cumentRegisterElement] CustomElementConstructor registerElement(DOMString name,
optional Dictionary options); | |
202 [CustomElementCallbacks, PerWorldBindings, RaisesException, DartCustom] Elem
ent createElement(DOMString localName, DOMString? typeExtension); | |
203 [CustomElementCallbacks, RaisesException, DartCustom] Element createElementN
S(DOMString? namespaceURI, DOMString qualifiedName, DOMString? typeExtension); | |
204 | |
205 // Page visibility API. | |
206 readonly attribute DOMString visibilityState; | |
207 readonly attribute boolean hidden; | |
208 | |
209 // Deprecated prefixed page visibility API. | |
210 // TODO(davidben): This is a property so attaching a deprecation warning res
ults in false positives when outputting | |
211 // document in the console. It's possible http://crbug.com/43394 will resolv
e this. | |
212 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a
ttribute DOMString webkitVisibilityState; | |
213 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute
boolean webkitHidden; | |
214 | |
215 readonly attribute HTMLScriptElement currentScript; | |
216 }; | 222 }; |
217 | 223 |
218 Document implements GlobalEventHandlers; | 224 Document implements GlobalEventHandlers; |
219 Document implements ParentNode; | 225 Document implements ParentNode; |
| 226 Document implements NonElementParentNode; |
OLD | NEW |