| 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 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 // https://html.spec.whatwg.org/#the-document-object | 23 // https://html.spec.whatwg.org/#the-document-object |
| 24 enum DocumentReadyState { "loading", "interactive", "complete" }; | 24 enum DocumentReadyState { "loading", "interactive", "complete" }; |
| 25 | 25 |
| 26 // http://www.w3.org/TR/page-visibility/#VisibilityState | 26 // http://www.w3.org/TR/page-visibility/#VisibilityState |
| 27 enum VisibilityState { "hidden", "visible", "prerender", "unloaded" }; | 27 enum VisibilityState { "hidden", "visible", "prerender", "unloaded" }; |
| 28 | 28 |
| 29 // https://mikewest.github.io/cors-rfc1918/#feature-detect | 29 // https://mikewest.github.io/cors-rfc1918/#feature-detect |
| 30 enum AddressSpace { "local", "private", "public" }; | 30 enum AddressSpace { "local", "private", "public" }; |
| 31 | 31 |
| 32 typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement; |
| 33 |
| 32 // https://dom.spec.whatwg.org/#interface-document | 34 // https://dom.spec.whatwg.org/#interface-document |
| 33 | 35 |
| 34 // FIXME: Document should have a constructor. crbug.com/238234 | 36 // FIXME: Document should have a constructor. crbug.com/238234 |
| 35 interface Document : Node { | 37 interface Document : Node { |
| 36 [SameObject] readonly attribute DOMImplementation implementation; | 38 [SameObject] readonly attribute DOMImplementation implementation; |
| 37 readonly attribute DOMString URL; | 39 readonly attribute DOMString URL; |
| 38 // FIXME: documentURI should not be nullable. | 40 // FIXME: documentURI should not be nullable. |
| 39 [ImplementedAs=url] readonly attribute DOMString? documentURI; | 41 [ImplementedAs=url] readonly attribute DOMString? documentURI; |
| 40 readonly attribute DOMString origin; | 42 readonly attribute DOMString origin; |
| 41 [RuntimeEnabled=suborigins] readonly attribute DOMString suborigin; | 43 [RuntimeEnabled=suborigins] readonly attribute DOMString suborigin; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 [CustomElementCallbacks] attribute DOMString dir; | 109 [CustomElementCallbacks] attribute DOMString dir; |
| 108 [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings] attribute
HTMLElement? body; | 110 [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings] attribute
HTMLElement? body; |
| 109 readonly attribute HTMLHeadElement? head; | 111 readonly attribute HTMLHeadElement? head; |
| 110 [SameObject, Measure] readonly attribute HTMLCollection images; | 112 [SameObject, Measure] readonly attribute HTMLCollection images; |
| 111 [SameObject, Measure] readonly attribute HTMLCollection embeds; | 113 [SameObject, Measure] readonly attribute HTMLCollection embeds; |
| 112 [SameObject, ImplementedAs=embeds, Measure] readonly attribute HTMLCollectio
n plugins; | 114 [SameObject, ImplementedAs=embeds, Measure] readonly attribute HTMLCollectio
n plugins; |
| 113 [SameObject, Measure] readonly attribute HTMLCollection links; | 115 [SameObject, Measure] readonly attribute HTMLCollection links; |
| 114 [SameObject, Measure] readonly attribute HTMLCollection forms; | 116 [SameObject, Measure] readonly attribute HTMLCollection forms; |
| 115 [SameObject, Measure] readonly attribute HTMLCollection scripts; | 117 [SameObject, Measure] readonly attribute HTMLCollection scripts; |
| 116 [PerWorldBindings] NodeList getElementsByName(DOMString elementName); | 118 [PerWorldBindings] NodeList getElementsByName(DOMString elementName); |
| 117 [ImplementedAs=currentScriptForBinding] readonly attribute HTMLScriptElement
? currentScript; | 119 [ImplementedAs=currentScriptForBinding] readonly attribute HTMLOrSVGScriptEl
ement? currentScript; |
| 118 | 120 |
| 119 // dynamic markup insertion | 121 // dynamic markup insertion |
| 120 // FIXME: There are two open() methods in the spec. | 122 // FIXME: There are two open() methods in the spec. |
| 121 [Custom, CustomElementCallbacks, RaisesException] void open(); | 123 [Custom, CustomElementCallbacks, RaisesException] void open(); |
| 122 [RaisesException] void close(); | 124 [RaisesException] void close(); |
| 123 [CallWith=EnteredWindow, CustomElementCallbacks, RaisesException] void write
(DOMString... text); | 125 [CallWith=EnteredWindow, CustomElementCallbacks, RaisesException] void write
(DOMString... text); |
| 124 [CallWith=EnteredWindow, CustomElementCallbacks, RaisesException] void write
ln(DOMString... text); | 126 [CallWith=EnteredWindow, CustomElementCallbacks, RaisesException] void write
ln(DOMString... text); |
| 125 | 127 |
| 126 // user interaction | 128 // user interaction |
| 127 [ImplementedAs=domWindow] readonly attribute Window? defaultView; | 129 [ImplementedAs=domWindow] readonly attribute Window? defaultView; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; | 220 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; |
| 219 attribute EventHandler onselectionchange; | 221 attribute EventHandler onselectionchange; |
| 220 attribute EventHandler onselectstart; | 222 attribute EventHandler onselectstart; |
| 221 attribute EventHandler onwheel; | 223 attribute EventHandler onwheel; |
| 222 }; | 224 }; |
| 223 | 225 |
| 224 Document implements GlobalEventHandlers; | 226 Document implements GlobalEventHandlers; |
| 225 Document implements ParentNode; | 227 Document implements ParentNode; |
| 226 Document implements NonElementParentNode; | 228 Document implements NonElementParentNode; |
| 227 Document implements DocumentOrShadowRoot; | 229 Document implements DocumentOrShadowRoot; |
| OLD | NEW |