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 typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext; |
24 | 24 |
| 25 // https://html.spec.whatwg.org/#the-document-object |
| 26 enum DocumentReadyState { "loading", "interactive", "complete" }; |
| 27 |
25 // http://www.w3.org/TR/page-visibility/#VisibilityState | 28 // http://www.w3.org/TR/page-visibility/#VisibilityState |
26 enum VisibilityState { "hidden", "visible", "prerender", "unloaded" }; | 29 enum VisibilityState { "hidden", "visible", "prerender", "unloaded" }; |
27 | 30 |
28 // https://dom.spec.whatwg.org/#interface-document | 31 // https://dom.spec.whatwg.org/#interface-document |
29 | 32 |
30 // FIXME: Document should have a constructor. | 33 // FIXME: Document should have a constructor. |
31 interface Document : Node { | 34 interface Document : Node { |
32 [SameObject] readonly attribute DOMImplementation implementation; | 35 [SameObject] readonly attribute DOMImplementation implementation; |
33 readonly attribute DOMString URL; | 36 readonly attribute DOMString URL; |
34 // FIXME: documentURI should not be nullable. | 37 // FIXME: documentURI should not be nullable. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // https://html.spec.whatwg.org/#the-document-object | 84 // https://html.spec.whatwg.org/#the-document-object |
82 | 85 |
83 // resource metadata management | 86 // resource metadata management |
84 [PutForwards=href, Unforgeable] readonly attribute Location? location; | 87 [PutForwards=href, Unforgeable] readonly attribute Location? location; |
85 // FIXME: domain should not have [TreatNullAs=NullString]. | 88 // FIXME: domain should not have [TreatNullAs=NullString]. |
86 [TreatNullAs=NullString, RaisesException=Setter] attribute DOMString domain; | 89 [TreatNullAs=NullString, RaisesException=Setter] attribute DOMString domain; |
87 readonly attribute DOMString referrer; | 90 readonly attribute DOMString referrer; |
88 // FIXME: cookie should not have [TreatNullAs=NullString]. | 91 // FIXME: cookie should not have [TreatNullAs=NullString]. |
89 [TreatNullAs=NullString, RaisesException] attribute DOMString cookie; | 92 [TreatNullAs=NullString, RaisesException] attribute DOMString cookie; |
90 readonly attribute DOMString lastModified; | 93 readonly attribute DOMString lastModified; |
91 // FIXME: readyState should use the enum DocumentReadyState. | 94 readonly attribute DocumentReadyState readyState; |
92 // FIXME: readyState should not have [TreatReturnedNullStringAs=Undefined]. | |
93 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyStat
e; | |
94 | 95 |
95 // DOM tree accessors | 96 // DOM tree accessors |
96 // FIXME: title and dir should not have [TreatNullAs=NullString]. | 97 // FIXME: title and dir should not have [TreatNullAs=NullString]. |
97 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString title; | 98 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString title; |
98 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString dir; | 99 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString dir; |
99 [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings, TypeCheck
ing=Interface, ExposeJSAccessors] attribute HTMLElement? body; | 100 [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings, TypeCheck
ing=Interface, ExposeJSAccessors] attribute HTMLElement? body; |
100 readonly attribute HTMLHeadElement? head; | 101 readonly attribute HTMLHeadElement? head; |
101 [SameObject] readonly attribute HTMLCollection images; | 102 [SameObject] readonly attribute HTMLCollection images; |
102 [SameObject] readonly attribute HTMLCollection embeds; | 103 [SameObject] readonly attribute HTMLCollection embeds; |
103 [SameObject, ImplementedAs=embeds] readonly attribute HTMLCollection plugins
; | 104 [SameObject, ImplementedAs=embeds] readonly attribute HTMLCollection plugins
; |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 attribute EventHandler onsearch; | 219 attribute EventHandler onsearch; |
219 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; | 220 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; |
220 attribute EventHandler onselectionchange; | 221 attribute EventHandler onselectionchange; |
221 attribute EventHandler onselectstart; | 222 attribute EventHandler onselectstart; |
222 attribute EventHandler onwheel; | 223 attribute EventHandler onwheel; |
223 }; | 224 }; |
224 | 225 |
225 Document implements GlobalEventHandlers; | 226 Document implements GlobalEventHandlers; |
226 Document implements ParentNode; | 227 Document implements ParentNode; |
227 Document implements NonElementParentNode; | 228 Document implements NonElementParentNode; |
OLD | NEW |