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 // https://dom.spec.whatwg.org/#interface-document | 31 // https://dom.spec.whatwg.org/#interface-document |
32 | 32 |
33 // FIXME: Document should have a constructor. crbug.com/238234 | 33 // FIXME: Document should have a constructor. crbug.com/238234 |
34 interface Document : Node { | 34 interface Document : Node { |
35 [SameObject] readonly attribute DOMImplementation implementation; | 35 [SameObject] readonly attribute DOMImplementation implementation; |
36 readonly attribute DOMString URL; | 36 readonly attribute DOMString URL; |
37 // FIXME: documentURI should not be nullable. | 37 // FIXME: documentURI should not be nullable. |
38 [ImplementedAs=url] readonly attribute DOMString? documentURI; | 38 [ImplementedAs=url] readonly attribute DOMString? documentURI; |
39 readonly attribute DOMString origin; | 39 readonly attribute DOMString origin; |
40 readonly attribute DOMString compatMode; | 40 readonly attribute DOMString compatMode; |
41 // FIXME: characterSet should not be nullable. | 41 |
42 readonly attribute DOMString? characterSet; | 42 readonly attribute DOMString characterSet; |
43 // FIXME: inputEncoding should not be nullable. | 43 [MeasureAs=DocumentInputEncoding, ImplementedAs=characterSet] readonly attri
bute DOMString inputEncoding; // legacy alias of .characterSet |
44 [MeasureAs=DocumentInputEncoding, ImplementedAs=characterSet] readonly attri
bute DOMString? inputEncoding; // legacy alias of .characterSet | |
45 readonly attribute DOMString contentType; | 44 readonly attribute DOMString contentType; |
46 | 45 |
47 readonly attribute DocumentType? doctype; | 46 readonly attribute DocumentType? doctype; |
48 readonly attribute Element? documentElement; | 47 readonly attribute Element? documentElement; |
49 HTMLCollection getElementsByTagName(DOMString localName); | 48 HTMLCollection getElementsByTagName(DOMString localName); |
50 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc
alName); | 49 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc
alName); |
51 HTMLCollection getElementsByClassName(DOMString classNames); | 50 HTMLCollection getElementsByClassName(DOMString classNames); |
52 | 51 |
53 [NewObject, CustomElementCallbacks, PerWorldBindings, RaisesException] Eleme
nt createElement(DOMString localName); | 52 [NewObject, CustomElementCallbacks, PerWorldBindings, RaisesException] Eleme
nt createElement(DOMString localName); |
54 [NewObject, CustomElementCallbacks, RaisesException] Element createElementNS
(DOMString? namespaceURI, DOMString qualifiedName); | 53 [NewObject, CustomElementCallbacks, RaisesException] Element createElementNS
(DOMString? namespaceURI, DOMString qualifiedName); |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // FIXME: The typeExtension arguments should not be nullable. | 188 // FIXME: The typeExtension arguments should not be nullable. |
190 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl
ement(DOMString localName, DOMString? typeExtension); | 189 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl
ement(DOMString localName, DOMString? typeExtension); |
191 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString?
namespaceURI, DOMString qualifiedName, DOMString? typeExtension); | 190 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString?
namespaceURI, DOMString qualifiedName, DOMString? typeExtension); |
192 | 191 |
193 // Page Visibility | 192 // Page Visibility |
194 // http://www.w3.org/TR/page-visibility/#sec-document-interface | 193 // http://www.w3.org/TR/page-visibility/#sec-document-interface |
195 readonly attribute boolean hidden; | 194 readonly attribute boolean hidden; |
196 readonly attribute VisibilityState visibilityState; | 195 readonly attribute VisibilityState visibilityState; |
197 | 196 |
198 // Non-standard APIs | 197 // Non-standard APIs |
199 [MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined] readonly at
tribute DOMString charset; | 198 [MeasureAs=DocumentCharset] readonly attribute DOMString charset; |
200 [MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] read
only attribute DOMString defaultCharset; | 199 [MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] read
only attribute DOMString defaultCharset; |
201 [MeasureAs=DocumentCaretRangeFromPoint] Range caretRangeFromPoint([Default=U
ndefined] optional long x, [Default=Undefined] optional long y); | 200 [MeasureAs=DocumentCaretRangeFromPoint] Range caretRangeFromPoint([Default=U
ndefined] optional long x, [Default=Undefined] optional long y); |
202 [DeprecateAs=DocumentGetCSSCanvasContext] RenderingContext getCSSCanvasConte
xt(DOMString contextId, DOMString name, long width, long height); | 201 [DeprecateAs=DocumentGetCSSCanvasContext] RenderingContext getCSSCanvasConte
xt(DOMString contextId, DOMString name, long width, long height); |
203 | 202 |
204 // Deprecated prefixed page visibility API. | 203 // Deprecated prefixed page visibility API. |
205 // TODO(davidben): This is a property so attaching a deprecation warning res
ults in false positives when outputting | 204 // TODO(davidben): This is a property so attaching a deprecation warning res
ults in false positives when outputting |
206 // document in the console. It's possible http://crbug.com/43394 will resolv
e this. | 205 // document in the console. It's possible http://crbug.com/43394 will resolv
e this. |
207 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a
ttribute DOMString webkitVisibilityState; | 206 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a
ttribute DOMString webkitVisibilityState; |
208 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute
boolean webkitHidden; | 207 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute
boolean webkitHidden; |
209 | 208 |
210 // Event handler attributes | 209 // Event handler attributes |
211 attribute EventHandler onbeforecopy; | 210 attribute EventHandler onbeforecopy; |
212 attribute EventHandler onbeforecut; | 211 attribute EventHandler onbeforecut; |
213 attribute EventHandler onbeforepaste; | 212 attribute EventHandler onbeforepaste; |
214 attribute EventHandler oncopy; | 213 attribute EventHandler oncopy; |
215 attribute EventHandler oncut; | 214 attribute EventHandler oncut; |
216 attribute EventHandler onpaste; | 215 attribute EventHandler onpaste; |
217 attribute EventHandler onsearch; | 216 attribute EventHandler onsearch; |
218 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; | 217 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; |
219 attribute EventHandler onselectionchange; | 218 attribute EventHandler onselectionchange; |
220 attribute EventHandler onselectstart; | 219 attribute EventHandler onselectstart; |
221 attribute EventHandler onwheel; | 220 attribute EventHandler onwheel; |
222 }; | 221 }; |
223 | 222 |
224 Document implements GlobalEventHandlers; | 223 Document implements GlobalEventHandlers; |
225 Document implements ParentNode; | 224 Document implements ParentNode; |
226 Document implements NonElementParentNode; | 225 Document implements NonElementParentNode; |
OLD | NEW |