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 16 matching lines...) Expand all Loading... |
27 // https://w3c.github.io/page-visibility/#visibility-states-and-the-visibilityst
ate-enum | 27 // https://w3c.github.io/page-visibility/#visibility-states-and-the-visibilityst
ate-enum |
28 enum VisibilityState { "hidden", "visible", "prerender", "unloaded" }; | 28 enum VisibilityState { "hidden", "visible", "prerender", "unloaded" }; |
29 | 29 |
30 // https://wicg.github.io/cors-rfc1918/#feature-detect | 30 // https://wicg.github.io/cors-rfc1918/#feature-detect |
31 enum AddressSpace { "local", "private", "public" }; | 31 enum AddressSpace { "local", "private", "public" }; |
32 | 32 |
33 typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement; | 33 typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement; |
34 | 34 |
35 // https://dom.spec.whatwg.org/#interface-document | 35 // https://dom.spec.whatwg.org/#interface-document |
36 | 36 |
37 // FIXME: Document should have a constructor. crbug.com/238234 | 37 [ |
38 interface Document : Node { | 38 Constructor(), |
| 39 ConstructorCallWith=Document, |
| 40 ] interface Document : Node { |
39 [SameObject] readonly attribute DOMImplementation implementation; | 41 [SameObject] readonly attribute DOMImplementation implementation; |
40 [ImplementedAs=urlForBinding] readonly attribute DOMString URL; | 42 [ImplementedAs=urlForBinding] readonly attribute DOMString URL; |
41 // FIXME: documentURI should not be nullable. | 43 // FIXME: documentURI should not be nullable. |
42 [ImplementedAs=urlForBinding] readonly attribute DOMString? documentURI; | 44 [ImplementedAs=urlForBinding] readonly attribute DOMString? documentURI; |
43 [MeasureAs=DocumentOrigin] readonly attribute DOMString origin; | 45 [MeasureAs=DocumentOrigin] readonly attribute DOMString origin; |
44 [RuntimeEnabled=suborigins] readonly attribute DOMString suborigin; | 46 [RuntimeEnabled=suborigins] readonly attribute DOMString suborigin; |
45 readonly attribute DOMString compatMode; | 47 readonly attribute DOMString compatMode; |
46 | 48 |
47 readonly attribute DOMString characterSet; | 49 readonly attribute DOMString characterSet; |
48 [ImplementedAs=characterSet] readonly attribute DOMString charset; // legacy
alias of .characterSet | 50 [ImplementedAs=characterSet] readonly attribute DOMString charset; // legacy
alias of .characterSet |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 attribute EventHandler onselectionchange; | 215 attribute EventHandler onselectionchange; |
214 attribute EventHandler onselectstart; | 216 attribute EventHandler onselectstart; |
215 attribute EventHandler onwheel; | 217 attribute EventHandler onwheel; |
216 }; | 218 }; |
217 | 219 |
218 Document implements GlobalEventHandlers; | 220 Document implements GlobalEventHandlers; |
219 Document implements ParentNode; | 221 Document implements ParentNode; |
220 Document implements NonElementParentNode; | 222 Document implements NonElementParentNode; |
221 Document implements DocumentOrShadowRoot; | 223 Document implements DocumentOrShadowRoot; |
222 Document implements FontFaceSource; | 224 Document implements FontFaceSource; |
OLD | NEW |