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, |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 // DOM Level 1 Core | 29 // DOM Level 1 Core |
30 readonly attribute DocumentType doctype; | 30 readonly attribute DocumentType doctype; |
31 readonly attribute DOMImplementation implementation; | 31 readonly attribute DOMImplementation implementation; |
32 readonly attribute Element documentElement; | 32 readonly attribute Element documentElement; |
33 | 33 |
34 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl
ement(DOMString tagName); | 34 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl
ement(DOMString tagName); |
35 DocumentFragment createDocumentFragment(); | 35 DocumentFragment createDocumentFragment(); |
36 Text createTextNode(DOMString data); | 36 Text createTextNode(DOMString data); |
37 Comment createComment(DOMString data); | 37 Comment createComment(DOMString data); |
38 [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createC
DATASection([Default=Undefined] optional DOMString data); // Removed from DOM4. | 38 [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createC
DATASection(optional DOMString data); // Removed from DOM4. |
39 [RaisesException] ProcessingInstruction createProcessingInstruction(DOMStrin
g target, DOMString data); | 39 [RaisesException] ProcessingInstruction createProcessingInstruction(DOMStrin
g target, DOMString data); |
40 [RaisesException, MeasureAs=DocumentCreateAttribute] Attr createAttribute([D
efault=Undefined] optional DOMString name); // Removed from DOM4. | 40 [RaisesException, MeasureAs=DocumentCreateAttribute] Attr createAttribute(op
tional DOMString name = "undefined"); // Removed from DOM4. |
41 HTMLCollection getElementsByTagName(DOMString localName); | 41 HTMLCollection getElementsByTagName(DOMString localName); |
42 | 42 |
43 // Introduced in DOM Level 2: | 43 // Introduced in DOM Level 2: |
44 | 44 |
45 [CustomElementCallbacks, RaisesException, TypeChecking=Interface] Node impor
tNode(Node node, optional boolean deep = false); | 45 [CustomElementCallbacks, RaisesException, TypeChecking=Interface] Node impor
tNode(Node node, optional boolean deep = false); |
46 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString?
namespaceURI, DOMString qualifiedName); | 46 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString?
namespaceURI, DOMString qualifiedName); |
47 [RaisesException, DeprecateAs=DocumentCreateAttributeNS] Attr createAttribut
eNS([Default=Undefined] optional DOMString? namespaceURI, | 47 [RaisesException, DeprecateAs=DocumentCreateAttributeNS] Attr createAttribut
eNS(optional DOMString? namespaceURI, |
48
[Default=Undefined] optional DOMString? qualifiedName); // Removed from DOM4
. | 48
optional DOMString? qualifiedName); // Removed from DOM4. |
49 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc
alName); | 49 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc
alName); |
50 [PerWorldBindings] Element getElementById(DOMString elementId); | 50 [PerWorldBindings] Element getElementById(DOMString elementId); |
51 | 51 |
52 // DOM Level 3 Core | 52 // DOM Level 3 Core |
53 | 53 |
54 [MeasureAs=DocumentInputEncoding] readonly attribute DOMString? inputEncodin
g; // Removed from DOM4. | 54 [MeasureAs=DocumentInputEncoding] readonly attribute DOMString? inputEncodin
g; // Removed from DOM4. |
55 | 55 |
56 [MeasureAs=DocumentXMLEncoding] readonly attribute DOMString? xmlEncoding; /
/ Removed from DOM4. | 56 [MeasureAs=DocumentXMLEncoding] readonly attribute DOMString? xmlEncoding; /
/ Removed from DOM4. |
57 [RaisesException=Setter, MeasureAs=DocumentXMLVersion] attribute DOMString?
xmlVersion; // 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. | 58 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean
xmlStandalone; // Removed from DOM4. |
(...skipping 22 matching lines...) Expand all Loading... |
81 // DOM Level 2 Abstract Views (DocumentView interface) | 81 // DOM Level 2 Abstract Views (DocumentView interface) |
82 | 82 |
83 [ImplementedAs=executingWindow] readonly attribute Window defaultView; | 83 [ImplementedAs=executingWindow] readonly attribute Window defaultView; |
84 | 84 |
85 // DOM Level 2 Style (DocumentStyle interface) | 85 // DOM Level 2 Style (DocumentStyle interface) |
86 | 86 |
87 readonly attribute StyleSheetList styleSheets; | 87 readonly attribute StyleSheetList styleSheets; |
88 | 88 |
89 // DOM Level 2 Style (DocumentCSS interface) | 89 // DOM Level 2 Style (DocumentCSS interface) |
90 | 90 |
91 CSSStyleDeclaration getOverrideStyle([Default=Undefined] optional Element el
ement, | 91 CSSStyleDeclaration getOverrideStyle(optional Element element, |
92 [Default=Undefined] optional DOMString
pseudoElement); | 92 optional DOMString pseudoElement); |
93 | 93 |
94 // DOM 4 | 94 // DOM 4 |
95 readonly attribute DOMString contentType; | 95 readonly attribute DOMString contentType; |
96 | 96 |
97 // Common extensions | 97 // Common extensions |
98 [CustomElementCallbacks] | 98 [CustomElementCallbacks] |
99 boolean execCommand([Default=Undefined] optional DOMString comman
d, | 99 boolean execCommand(optional DOMString command, |
100 [Default=Undefined] optional boolean userInte
rface, | 100 optional boolean userInterface, |
101 [TreatUndefinedAs=NullString, Default=Undefin
ed] optional DOMString? value); | 101 [TreatUndefinedAs=NullString] optional DOMStr
ing? value); |
102 | 102 |
103 boolean queryCommandEnabled([Default=Undefined] optional DOMStrin
g command); | 103 boolean queryCommandEnabled(optional DOMString command); |
104 boolean queryCommandIndeterm([Default=Undefined] optional DOMStri
ng command); | 104 boolean queryCommandIndeterm(optional DOMString command); |
105 boolean queryCommandState([Default=Undefined] optional DOMString
command); | 105 boolean queryCommandState(optional DOMString command); |
106 boolean queryCommandSupported([Default=Undefined] optional DOMStr
ing command); | 106 boolean queryCommandSupported(optional DOMString command); |
107 DOMString queryCommandValue([Default=Undefined] optional DOMString
command); | 107 DOMString queryCommandValue(optional DOMString command); |
108 | 108 |
109 // Moved down from HTMLDocument | 109 // Moved down from HTMLDocument |
110 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin
g dir; | 110 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin
g dir; |
111 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin
g designMode; | 111 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin
g designMode; |
112 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin
g title; | 112 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin
g title; |
113 readonly attribute DOMString referrer; | 113 readonly attribute DOMString referrer; |
114 [TreatNullAs=NullString, RaisesException=Setter] attribute DOMStrin
g domain; | 114 [TreatNullAs=NullString, RaisesException=Setter] attribute DOMStrin
g domain; |
115 readonly attribute DOMString URL; | 115 readonly attribute DOMString URL; |
116 | 116 |
117 [TreatNullAs=NullString, RaisesException] attribute DOMString cooki
e; | 117 [TreatNullAs=NullString, RaisesException] attribute DOMString cooki
e; |
118 | 118 |
119 [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings, TypeCheck
ing=Interface] attribute HTMLElement? body; | 119 [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings, TypeCheck
ing=Interface] attribute HTMLElement? body; |
120 | 120 |
121 readonly attribute HTMLHeadElement head; | 121 readonly attribute HTMLHeadElement head; |
122 readonly attribute HTMLCollection images; | 122 readonly attribute HTMLCollection images; |
123 readonly attribute HTMLCollection applets; | 123 readonly attribute HTMLCollection applets; |
124 readonly attribute HTMLCollection embeds; | 124 readonly attribute HTMLCollection embeds; |
125 [ImplementedAs=embeds] readonly attribute HTMLCollection plugins; | 125 [ImplementedAs=embeds] readonly attribute HTMLCollection plugins; |
126 readonly attribute HTMLCollection links; | 126 readonly attribute HTMLCollection links; |
127 readonly attribute HTMLCollection forms; | 127 readonly attribute HTMLCollection forms; |
128 readonly attribute HTMLCollection scripts; | 128 readonly attribute HTMLCollection scripts; |
129 readonly attribute HTMLCollection anchors; | 129 readonly attribute HTMLCollection anchors; |
130 readonly attribute DOMString lastModified; | 130 readonly attribute DOMString lastModified; |
131 | 131 |
132 [PerWorldBindings] NodeList getElementsByName([Default=Undefined] optional D
OMString elementName); | 132 [PerWorldBindings] NodeList getElementsByName(optional DOMString elementName
); |
133 | 133 |
134 [PutForwards=href] readonly attribute Location location; | 134 [PutForwards=href] readonly attribute Location location; |
135 | 135 |
136 // IE extensions | 136 // IE extensions |
137 [MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined, TreatNullAs
=NullString] attribute DOMString charset; | 137 [MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined, TreatNullAs
=NullString] attribute DOMString charset; |
138 [MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] read
only attribute DOMString defaultCharset; | 138 [MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] read
only attribute DOMString defaultCharset; |
139 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyStat
e; | 139 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyStat
e; |
140 | 140 |
141 Element elementFromPoint([Default=Undefined] optional long x, | 141 Element elementFromPoint(optional long x, |
142 [Default=Undefined] optional long y); | 142 optional long y); |
143 [MeasureAs=DocumentCaretRangeFromPoint] | 143 [MeasureAs=DocumentCaretRangeFromPoint] |
144 Range caretRangeFromPoint([Default=Undefined] optional long x, | 144 Range caretRangeFromPoint(optional long x, |
145 [Default=Undefined] optional long y); | 145 optional long y); |
146 | 146 |
147 // Mozilla extensions | 147 // Mozilla extensions |
148 Selection getSelection(); | 148 Selection getSelection(); |
149 readonly attribute DOMString? characterSet; | 149 readonly attribute DOMString? characterSet; |
150 | 150 |
151 // WebKit extensions | 151 // WebKit extensions |
152 | 152 |
153 readonly attribute DOMString? preferredStylesheetSet; | 153 readonly attribute DOMString? preferredStylesheetSet; |
154 attribute DOMString? selectedStylesheetSet; | 154 attribute DOMString? selectedStylesheetSet; |
155 | 155 |
(...skipping 22 matching lines...) Expand all Loading... |
178 attribute EventHandler onsearch; | 178 attribute EventHandler onsearch; |
179 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; | 179 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; |
180 attribute EventHandler onselectionchange; | 180 attribute EventHandler onselectionchange; |
181 attribute EventHandler onselectstart; | 181 attribute EventHandler onselectstart; |
182 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; | 182 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; |
183 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; | 183 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; |
184 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; | 184 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; |
185 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; | 185 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; |
186 attribute EventHandler onwheel; | 186 attribute EventHandler onwheel; |
187 | 187 |
188 [RuntimeEnabled=Touch] Touch createTouch([Default=Undefined] optional Window
window, | 188 [RuntimeEnabled=Touch] Touch createTouch(optional Window window, |
189 [Default=Undefined] optional EventT
arget target, | 189 optional EventTarget target, |
190 [Default=Undefined] optional long i
dentifier, | 190 optional long identifier, |
191 [Default=Undefined] optional double
pageX, | 191 optional double pageX, |
192 [Default=Undefined] optional double
pageY, | 192 optional double pageY, |
193 [Default=Undefined] optional double
screenX, | 193 optional double screenX, |
194 [Default=Undefined] optional double
screenY, | 194 optional double screenY, |
195 [Default=Undefined] optional double
webkitRadiusX, | 195 optional double webkitRadiusX, |
196 [Default=Undefined] optional double
webkitRadiusY, | 196 optional double webkitRadiusY, |
197 [Default=Undefined] optional float
webkitRotationAngle, | 197 optional float webkitRotationAngle, |
198 [Default=Undefined] optional float
webkitForce); | 198 optional float webkitForce); |
199 [RuntimeEnabled=Touch] TouchList createTouchList(Touch... touches); | 199 [RuntimeEnabled=Touch] TouchList createTouchList(Touch... touches); |
200 | 200 |
201 [CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=Do
cumentRegisterElement] CustomElementConstructor registerElement(DOMString name,
optional Dictionary options); | 201 [CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=Do
cumentRegisterElement] CustomElementConstructor registerElement(DOMString name,
optional Dictionary options); |
202 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl
ement(DOMString localName, DOMString? typeExtension); | 202 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl
ement(DOMString localName, DOMString? typeExtension); |
203 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString?
namespaceURI, DOMString qualifiedName, DOMString? typeExtension); | 203 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString?
namespaceURI, DOMString qualifiedName, DOMString? typeExtension); |
204 | 204 |
205 // Page visibility API. | 205 // Page visibility API. |
206 readonly attribute DOMString visibilityState; | 206 readonly attribute DOMString visibilityState; |
207 readonly attribute boolean hidden; | 207 readonly attribute boolean hidden; |
208 | 208 |
209 // Deprecated prefixed page visibility API. | 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 | 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. | 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; | 212 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a
ttribute DOMString webkitVisibilityState; |
213 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute
boolean webkitHidden; | 213 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute
boolean webkitHidden; |
214 | 214 |
215 readonly attribute HTMLScriptElement currentScript; | 215 readonly attribute HTMLScriptElement currentScript; |
216 }; | 216 }; |
217 | 217 |
218 Document implements GlobalEventHandlers; | 218 Document implements GlobalEventHandlers; |
219 Document implements ParentNode; | 219 Document implements ParentNode; |
OLD | NEW |