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 20 matching lines...) Expand all Loading... |
31 // FIXME: Document should have a constructor. crbug.com/238234 | 31 // FIXME: Document should have a constructor. crbug.com/238234 |
32 interface Document : Node { | 32 interface Document : Node { |
33 [SameObject] readonly attribute DOMImplementation implementation; | 33 [SameObject] readonly attribute DOMImplementation implementation; |
34 readonly attribute DOMString URL; | 34 readonly attribute DOMString URL; |
35 // FIXME: documentURI should not be nullable. | 35 // FIXME: documentURI should not be nullable. |
36 [ImplementedAs=url] readonly attribute DOMString? documentURI; | 36 [ImplementedAs=url] readonly attribute DOMString? documentURI; |
37 readonly attribute DOMString origin; | 37 readonly attribute DOMString origin; |
38 readonly attribute DOMString compatMode; | 38 readonly attribute DOMString compatMode; |
39 | 39 |
40 readonly attribute DOMString characterSet; | 40 readonly attribute DOMString characterSet; |
41 [MeasureAs=DocumentInputEncoding, ImplementedAs=characterSet] readonly attri
bute DOMString inputEncoding; // legacy alias of .characterSet | 41 [ImplementedAs=characterSet] readonly attribute DOMString charset; // legacy
alias of .characterSet |
| 42 [ImplementedAs=characterSet] readonly attribute DOMString inputEncoding; //
legacy alias of .characterSet |
42 readonly attribute DOMString contentType; | 43 readonly attribute DOMString contentType; |
43 | 44 |
44 readonly attribute DocumentType? doctype; | 45 readonly attribute DocumentType? doctype; |
45 readonly attribute Element? documentElement; | 46 readonly attribute Element? documentElement; |
46 HTMLCollection getElementsByTagName(DOMString localName); | 47 HTMLCollection getElementsByTagName(DOMString localName); |
47 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc
alName); | 48 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc
alName); |
48 HTMLCollection getElementsByClassName(DOMString classNames); | 49 HTMLCollection getElementsByClassName(DOMString classNames); |
49 | 50 |
50 [NewObject, CustomElementCallbacks, PerWorldBindings, RaisesException] Eleme
nt createElement(DOMString localName); | 51 [NewObject, CustomElementCallbacks, PerWorldBindings, RaisesException] Eleme
nt createElement(DOMString localName); |
51 [NewObject, CustomElementCallbacks, RaisesException] Element createElementNS
(DOMString? namespaceURI, DOMString qualifiedName); | 52 [NewObject, CustomElementCallbacks, RaisesException] Element createElementNS
(DOMString? namespaceURI, DOMString qualifiedName); |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 // FIXME: The typeExtension arguments should not be nullable. | 195 // FIXME: The typeExtension arguments should not be nullable. |
195 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl
ement(DOMString localName, DOMString? typeExtension); | 196 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl
ement(DOMString localName, DOMString? typeExtension); |
196 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString?
namespaceURI, DOMString qualifiedName, DOMString? typeExtension); | 197 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString?
namespaceURI, DOMString qualifiedName, DOMString? typeExtension); |
197 | 198 |
198 // Page Visibility | 199 // Page Visibility |
199 // http://www.w3.org/TR/page-visibility/#sec-document-interface | 200 // http://www.w3.org/TR/page-visibility/#sec-document-interface |
200 readonly attribute boolean hidden; | 201 readonly attribute boolean hidden; |
201 readonly attribute VisibilityState visibilityState; | 202 readonly attribute VisibilityState visibilityState; |
202 | 203 |
203 // Non-standard APIs | 204 // Non-standard APIs |
204 [MeasureAs=DocumentCharset] readonly attribute DOMString charset; | |
205 [MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] read
only attribute DOMString defaultCharset; | 205 [MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] read
only attribute DOMString defaultCharset; |
206 [MeasureAs=DocumentCaretRangeFromPoint] Range caretRangeFromPoint([Default=U
ndefined] optional long x, [Default=Undefined] optional long y); | 206 [MeasureAs=DocumentCaretRangeFromPoint] Range caretRangeFromPoint([Default=U
ndefined] optional long x, [Default=Undefined] optional long y); |
207 [CallWith=ScriptState, DeprecateAs=DocumentGetCSSCanvasContext] any getCSSCa
nvasContext(DOMString contextId, DOMString name, long width, long height); | 207 [CallWith=ScriptState, DeprecateAs=DocumentGetCSSCanvasContext] any getCSSCa
nvasContext(DOMString contextId, DOMString name, long width, long height); |
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 // Event handler attributes | 215 // Event handler attributes |
216 attribute EventHandler onbeforecopy; | 216 attribute EventHandler onbeforecopy; |
217 attribute EventHandler onbeforecut; | 217 attribute EventHandler onbeforecut; |
218 attribute EventHandler onbeforepaste; | 218 attribute EventHandler onbeforepaste; |
219 attribute EventHandler oncopy; | 219 attribute EventHandler oncopy; |
220 attribute EventHandler oncut; | 220 attribute EventHandler oncut; |
221 attribute EventHandler onpaste; | 221 attribute EventHandler onpaste; |
222 attribute EventHandler onsearch; | 222 attribute EventHandler onsearch; |
223 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; | 223 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; |
224 attribute EventHandler onselectionchange; | 224 attribute EventHandler onselectionchange; |
225 attribute EventHandler onselectstart; | 225 attribute EventHandler onselectstart; |
226 attribute EventHandler onwheel; | 226 attribute EventHandler onwheel; |
227 }; | 227 }; |
228 | 228 |
229 Document implements GlobalEventHandlers; | 229 Document implements GlobalEventHandlers; |
230 Document implements ParentNode; | 230 Document implements ParentNode; |
231 Document implements NonElementParentNode; | 231 Document implements NonElementParentNode; |
OLD | NEW |