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 10 matching lines...) Expand all Loading... |
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 // http://www.w3.org/TR/page-visibility/#VisibilityState | 25 // http://www.w3.org/TR/page-visibility/#VisibilityState |
26 enum VisibilityState { "hidden", "visible", "prerender", "unloaded" }; | 26 enum VisibilityState { "hidden", "visible", "prerender", "unloaded" }; |
27 | 27 |
28 // https://dom.spec.whatwg.org/#interface-document | 28 // https://dom.spec.whatwg.org/#interface-document |
29 | 29 |
30 // FIXME: Document should have a constructor. | 30 // FIXME: Document should have a constructor. |
31 [ | 31 interface Document : Node { |
32 TypeChecking=Unrestricted, | |
33 ] interface Document : Node { | |
34 readonly attribute DOMImplementation implementation; | 32 readonly attribute DOMImplementation implementation; |
35 readonly attribute DOMString URL; | 33 readonly attribute DOMString URL; |
36 // FIXME: documentURI should not be nullable. | 34 // FIXME: documentURI should not be nullable. |
37 [ImplementedAs=url] readonly attribute DOMString? documentURI; | 35 [ImplementedAs=url] readonly attribute DOMString? documentURI; |
38 readonly attribute DOMString origin; | 36 readonly attribute DOMString origin; |
39 readonly attribute DOMString compatMode; | 37 readonly attribute DOMString compatMode; |
40 // FIXME: characterSet should not be nullable. | 38 // FIXME: characterSet should not be nullable. |
41 readonly attribute DOMString? characterSet; | 39 readonly attribute DOMString? characterSet; |
42 // FIXME: inputEncoding should not be nullable. | 40 // FIXME: inputEncoding should not be nullable. |
43 [MeasureAs=DocumentInputEncoding, ImplementedAs=characterSet] readonly attri
bute DOMString? inputEncoding; // legacy alias of .characterSet | 41 [MeasureAs=DocumentInputEncoding, ImplementedAs=characterSet] readonly attri
bute DOMString? inputEncoding; // legacy alias of .characterSet |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 attribute EventHandler onsearch; | 224 attribute EventHandler onsearch; |
227 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; | 225 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; |
228 attribute EventHandler onselectionchange; | 226 attribute EventHandler onselectionchange; |
229 attribute EventHandler onselectstart; | 227 attribute EventHandler onselectstart; |
230 attribute EventHandler onwheel; | 228 attribute EventHandler onwheel; |
231 }; | 229 }; |
232 | 230 |
233 Document implements GlobalEventHandlers; | 231 Document implements GlobalEventHandlers; |
234 Document implements ParentNode; | 232 Document implements ParentNode; |
235 Document implements NonElementParentNode; | 233 Document implements NonElementParentNode; |
OLD | NEW |