| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 [MeasureAs=DocumentXMLEncoding] readonly attribute DOMString? xmlEncoding; | 83 [MeasureAs=DocumentXMLEncoding] readonly attribute DOMString? xmlEncoding; |
| 84 [RaisesException=Setter, MeasureAs=DocumentXMLVersion] attribute DOMString?
xmlVersion; | 84 [RaisesException=Setter, MeasureAs=DocumentXMLVersion] attribute DOMString?
xmlVersion; |
| 85 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean
xmlStandalone; | 85 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean
xmlStandalone; |
| 86 | 86 |
| 87 // HTML | 87 // HTML |
| 88 // https://html.spec.whatwg.org/#the-document-object | 88 // https://html.spec.whatwg.org/#the-document-object |
| 89 | 89 |
| 90 // resource metadata management | 90 // resource metadata management |
| 91 | 91 |
| 92 [PutForwards=href, Unforgeable] readonly attribute Location? location; | 92 [PutForwards=href, Unforgeable] readonly attribute Location? location; |
| 93 [RaisesException=Setter, FeaturePolicy=DocumentDomain] attribute DOMString d
omain; | 93 [RaisesException=Setter] attribute DOMString domain; |
| 94 readonly attribute DOMString referrer; | 94 readonly attribute DOMString referrer; |
| 95 [RaisesException, FeaturePolicy=DocumentCookie] attribute DOMString cookie; | 95 [RaisesException] attribute DOMString cookie; |
| 96 readonly attribute DOMString lastModified; | 96 readonly attribute DOMString lastModified; |
| 97 readonly attribute DocumentReadyState readyState; | 97 readonly attribute DocumentReadyState readyState; |
| 98 | 98 |
| 99 // DOM tree accessors | 99 // DOM tree accessors |
| 100 [CEReactions, CustomElementCallbacks] attribute DOMString title; | 100 [CEReactions, CustomElementCallbacks] attribute DOMString title; |
| 101 [CEReactions, CustomElementCallbacks] attribute DOMString dir; | 101 [CEReactions, CustomElementCallbacks] attribute DOMString dir; |
| 102 [CEReactions, RaisesException=Setter, CustomElementCallbacks, PerWorldBindin
gs] attribute HTMLElement? body; | 102 [CEReactions, RaisesException=Setter, CustomElementCallbacks, PerWorldBindin
gs] attribute HTMLElement? body; |
| 103 readonly attribute HTMLHeadElement? head; | 103 readonly attribute HTMLHeadElement? head; |
| 104 [SameObject, Measure] readonly attribute HTMLCollection images; | 104 [SameObject, Measure] readonly attribute HTMLCollection images; |
| 105 [SameObject, Measure] readonly attribute HTMLCollection embeds; | 105 [SameObject, Measure] readonly attribute HTMLCollection embeds; |
| 106 [SameObject, ImplementedAs=embeds, Measure] readonly attribute HTMLCollectio
n plugins; | 106 [SameObject, ImplementedAs=embeds, Measure] readonly attribute HTMLCollectio
n plugins; |
| 107 [SameObject, Measure] readonly attribute HTMLCollection links; | 107 [SameObject, Measure] readonly attribute HTMLCollection links; |
| 108 [SameObject, Measure] readonly attribute HTMLCollection forms; | 108 [SameObject, Measure] readonly attribute HTMLCollection forms; |
| 109 [SameObject, Measure] readonly attribute HTMLCollection scripts; | 109 [SameObject, Measure] readonly attribute HTMLCollection scripts; |
| 110 [PerWorldBindings] NodeList getElementsByName(DOMString elementName); | 110 [PerWorldBindings] NodeList getElementsByName(DOMString elementName); |
| 111 [ImplementedAs=currentScriptForBinding] readonly attribute HTMLOrSVGScriptEl
ement? currentScript; | 111 [ImplementedAs=currentScriptForBinding] readonly attribute HTMLOrSVGScriptEl
ement? currentScript; |
| 112 | 112 |
| 113 // dynamic markup insertion | 113 // dynamic markup insertion |
| 114 // FIXME: There are two open() methods in the spec. | 114 // FIXME: There are two open() methods in the spec. |
| 115 [Custom, CEReactions, CustomElementCallbacks, RaisesException, MeasureAs=Doc
umentOpen] void open(); | 115 [Custom, CEReactions, CustomElementCallbacks, RaisesException, MeasureAs=Doc
umentOpen] void open(); |
| 116 [CEReactions, RaisesException] void close(); | 116 [CEReactions, RaisesException] void close(); |
| 117 [CallWith=EnteredWindow, CEReactions, CustomElementCallbacks, RaisesExceptio
n, FeaturePolicy=DocumentWrite] void write(DOMString... text); | 117 [CallWith=EnteredWindow, CEReactions, CustomElementCallbacks, RaisesExceptio
n] void write(DOMString... text); |
| 118 [CallWith=EnteredWindow, CEReactions, CustomElementCallbacks, RaisesExceptio
n, FeaturePolicy=DocumentWrite] void writeln(DOMString... text); | 118 [CallWith=EnteredWindow, CEReactions, CustomElementCallbacks, RaisesExceptio
n] void writeln(DOMString... text); |
| 119 | 119 |
| 120 // user interaction | 120 // user interaction |
| 121 [ImplementedAs=domWindow] readonly attribute Window? defaultView; | 121 [ImplementedAs=domWindow] readonly attribute Window? defaultView; |
| 122 boolean hasFocus(); | 122 boolean hasFocus(); |
| 123 [CEReactions, CustomElementCallbacks, MeasureAs=DocumentDesignMode] attribut
e DOMString designMode; | 123 [CEReactions, CustomElementCallbacks, MeasureAs=DocumentDesignMode] attribut
e DOMString designMode; |
| 124 [CEReactions, CustomElementCallbacks, RaisesException] boolean execCommand(D
OMString commandId, optional boolean showUI = false, optional DOMString value =
""); | 124 [CEReactions, CustomElementCallbacks, RaisesException] boolean execCommand(D
OMString commandId, optional boolean showUI = false, optional DOMString value =
""); |
| 125 [RaisesException] boolean queryCommandEnabled(DOMString commandId); | 125 [RaisesException] boolean queryCommandEnabled(DOMString commandId); |
| 126 [RaisesException] boolean queryCommandIndeterm(DOMString commandId); | 126 [RaisesException] boolean queryCommandIndeterm(DOMString commandId); |
| 127 [RaisesException] boolean queryCommandState(DOMString commandId); | 127 [RaisesException] boolean queryCommandState(DOMString commandId); |
| 128 [RaisesException] boolean queryCommandSupported(DOMString commandId); | 128 [RaisesException] boolean queryCommandSupported(DOMString commandId); |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; | 208 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; |
| 209 attribute EventHandler onselectionchange; | 209 attribute EventHandler onselectionchange; |
| 210 attribute EventHandler onselectstart; | 210 attribute EventHandler onselectstart; |
| 211 attribute EventHandler onwheel; | 211 attribute EventHandler onwheel; |
| 212 }; | 212 }; |
| 213 | 213 |
| 214 Document implements GlobalEventHandlers; | 214 Document implements GlobalEventHandlers; |
| 215 Document implements ParentNode; | 215 Document implements ParentNode; |
| 216 Document implements NonElementParentNode; | 216 Document implements NonElementParentNode; |
| 217 Document implements DocumentOrShadowRoot; | 217 Document implements DocumentOrShadowRoot; |
| OLD | NEW |