| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc
alName); | 54 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc
alName); |
| 55 HTMLCollection getElementsByClassName(DOMString classNames); | 55 HTMLCollection getElementsByClassName(DOMString classNames); |
| 56 | 56 |
| 57 [NewObject, CustomElementCallbacks, PerWorldBindings, RaisesException] Eleme
nt createElement(DOMString localName); | 57 [NewObject, CustomElementCallbacks, PerWorldBindings, RaisesException] Eleme
nt createElement(DOMString localName); |
| 58 [NewObject, CustomElementCallbacks, RaisesException] Element createElementNS
(DOMString? namespaceURI, DOMString qualifiedName); | 58 [NewObject, CustomElementCallbacks, RaisesException] Element createElementNS
(DOMString? namespaceURI, DOMString qualifiedName); |
| 59 [NewObject] DocumentFragment createDocumentFragment(); | 59 [NewObject] DocumentFragment createDocumentFragment(); |
| 60 [NewObject] Text createTextNode(DOMString data); | 60 [NewObject] Text createTextNode(DOMString data); |
| 61 [NewObject] Comment createComment(DOMString data); | 61 [NewObject] Comment createComment(DOMString data); |
| 62 [NewObject, RaisesException] ProcessingInstruction createProcessingInstructi
on(DOMString target, DOMString data); | 62 [NewObject, RaisesException] ProcessingInstruction createProcessingInstructi
on(DOMString target, DOMString data); |
| 63 | 63 |
| 64 [NewObject, CustomElementCallbacks, RaisesException] Node importNode(Node no
de, optional boolean deep = false); | 64 [NewObject, CEReactions, CustomElementCallbacks, RaisesException] Node impor
tNode(Node node, optional boolean deep = false); |
| 65 [RaisesException, CustomElementCallbacks] Node adoptNode(Node node); | 65 [RaisesException, CEReactions, CustomElementCallbacks] Node adoptNode(Node n
ode); |
| 66 | 66 |
| 67 [NewObject, RaisesException, MeasureAs=DocumentCreateAttribute] Attr createA
ttribute(DOMString localName); | 67 [NewObject, RaisesException, MeasureAs=DocumentCreateAttribute] Attr createA
ttribute(DOMString localName); |
| 68 [NewObject, RaisesException, MeasureAs=DocumentCreateAttributeNS] Attr creat
eAttributeNS(DOMString? namespaceURI, DOMString qualifiedName); | 68 [NewObject, RaisesException, MeasureAs=DocumentCreateAttributeNS] Attr creat
eAttributeNS(DOMString? namespaceURI, DOMString qualifiedName); |
| 69 | 69 |
| 70 [NewObject, RaisesException, CallWith=ExecutionContext] Event createEvent(DO
MString eventType); | 70 [NewObject, RaisesException, CallWith=ExecutionContext] Event createEvent(DO
MString eventType); |
| 71 | 71 |
| 72 [NewObject] Range createRange(); | 72 [NewObject] Range createRange(); |
| 73 | 73 |
| 74 // NodeFilter.SHOW_ALL = 0xFFFFFFFF | 74 // NodeFilter.SHOW_ALL = 0xFFFFFFFF |
| 75 [NewObject] NodeIterator createNodeIterator(Node root, optional unsigned lon
g whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null); | 75 [NewObject] NodeIterator createNodeIterator(Node root, optional unsigned lon
g whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 97 // Keep all the definitions consistent. | 97 // Keep all the definitions consistent. |
| 98 // TODO(yukishiino): Support inheritance of attributes defined on instance. | 98 // TODO(yukishiino): Support inheritance of attributes defined on instance. |
| 99 [PutForwards=href, Unforgeable] readonly attribute Location? location; | 99 [PutForwards=href, Unforgeable] readonly attribute Location? location; |
| 100 [RaisesException=Setter] attribute DOMString domain; | 100 [RaisesException=Setter] attribute DOMString domain; |
| 101 readonly attribute DOMString referrer; | 101 readonly attribute DOMString referrer; |
| 102 [RaisesException] attribute DOMString cookie; | 102 [RaisesException] attribute DOMString cookie; |
| 103 readonly attribute DOMString lastModified; | 103 readonly attribute DOMString lastModified; |
| 104 readonly attribute DocumentReadyState readyState; | 104 readonly attribute DocumentReadyState readyState; |
| 105 | 105 |
| 106 // DOM tree accessors | 106 // DOM tree accessors |
| 107 [CustomElementCallbacks] attribute DOMString title; | 107 [CEReactions, CustomElementCallbacks] attribute DOMString title; |
| 108 [CustomElementCallbacks] attribute DOMString dir; | 108 [CEReactions, CustomElementCallbacks] attribute DOMString dir; |
| 109 [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings] attribute
HTMLElement? body; | 109 [CEReactions, RaisesException=Setter, CustomElementCallbacks, PerWorldBindin
gs] attribute HTMLElement? body; |
| 110 readonly attribute HTMLHeadElement? head; | 110 readonly attribute HTMLHeadElement? head; |
| 111 [SameObject, Measure] readonly attribute HTMLCollection images; | 111 [SameObject, Measure] readonly attribute HTMLCollection images; |
| 112 [SameObject, Measure] readonly attribute HTMLCollection embeds; | 112 [SameObject, Measure] readonly attribute HTMLCollection embeds; |
| 113 [SameObject, ImplementedAs=embeds, Measure] readonly attribute HTMLCollectio
n plugins; | 113 [SameObject, ImplementedAs=embeds, Measure] readonly attribute HTMLCollectio
n plugins; |
| 114 [SameObject, Measure] readonly attribute HTMLCollection links; | 114 [SameObject, Measure] readonly attribute HTMLCollection links; |
| 115 [SameObject, Measure] readonly attribute HTMLCollection forms; | 115 [SameObject, Measure] readonly attribute HTMLCollection forms; |
| 116 [SameObject, Measure] readonly attribute HTMLCollection scripts; | 116 [SameObject, Measure] readonly attribute HTMLCollection scripts; |
| 117 [PerWorldBindings] NodeList getElementsByName(DOMString elementName); | 117 [PerWorldBindings] NodeList getElementsByName(DOMString elementName); |
| 118 [ImplementedAs=currentScriptForBinding] readonly attribute HTMLOrSVGScriptEl
ement? currentScript; | 118 [ImplementedAs=currentScriptForBinding] readonly attribute HTMLOrSVGScriptEl
ement? currentScript; |
| 119 | 119 |
| 120 // dynamic markup insertion | 120 // dynamic markup insertion |
| 121 // FIXME: There are two open() methods in the spec. | 121 // FIXME: There are two open() methods in the spec. |
| 122 [Custom, CustomElementCallbacks, RaisesException] void open(); | 122 [Custom, CEReactions, CustomElementCallbacks, RaisesException] void open(); |
| 123 [RaisesException] void close(); | 123 [CEReactions, RaisesException] void close(); |
| 124 [CallWith=EnteredWindow, CustomElementCallbacks, RaisesException] void write
(DOMString... text); | 124 [CallWith=EnteredWindow, CEReactions, CustomElementCallbacks, RaisesExceptio
n] void write(DOMString... text); |
| 125 [CallWith=EnteredWindow, CustomElementCallbacks, RaisesException] void write
ln(DOMString... text); | 125 [CallWith=EnteredWindow, CEReactions, CustomElementCallbacks, RaisesExceptio
n] void writeln(DOMString... text); |
| 126 | 126 |
| 127 // user interaction | 127 // user interaction |
| 128 [ImplementedAs=domWindow] readonly attribute Window? defaultView; | 128 [ImplementedAs=domWindow] readonly attribute Window? defaultView; |
| 129 boolean hasFocus(); | 129 boolean hasFocus(); |
| 130 [CustomElementCallbacks, MeasureAs=DocumentDesignMode] attribute DOMString d
esignMode; | 130 [CEReactions, CustomElementCallbacks, MeasureAs=DocumentDesignMode] attribut
e DOMString designMode; |
| 131 [CustomElementCallbacks, RaisesException] boolean execCommand(DOMString comm
andId, optional boolean showUI = false, optional DOMString value = ""); | 131 [CEReactions, CustomElementCallbacks, RaisesException] boolean execCommand(D
OMString commandId, optional boolean showUI = false, optional DOMString value =
""); |
| 132 [RaisesException] boolean queryCommandEnabled(DOMString commandId); | 132 [RaisesException] boolean queryCommandEnabled(DOMString commandId); |
| 133 [RaisesException] boolean queryCommandIndeterm(DOMString commandId); | 133 [RaisesException] boolean queryCommandIndeterm(DOMString commandId); |
| 134 [RaisesException] boolean queryCommandState(DOMString commandId); | 134 [RaisesException] boolean queryCommandState(DOMString commandId); |
| 135 [RaisesException] boolean queryCommandSupported(DOMString commandId); | 135 [RaisesException] boolean queryCommandSupported(DOMString commandId); |
| 136 [RaisesException] DOMString queryCommandValue(DOMString commandId); | 136 [RaisesException] DOMString queryCommandValue(DOMString commandId); |
| 137 | 137 |
| 138 [LenientThis] attribute EventHandler onreadystatechange; | 138 [LenientThis] attribute EventHandler onreadystatechange; |
| 139 | 139 |
| 140 // HTML obsolete features | 140 // HTML obsolete features |
| 141 // https://html.spec.whatwg.org/#Document-partial | 141 // https://html.spec.whatwg.org/#Document-partial |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; | 215 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; |
| 216 attribute EventHandler onselectionchange; | 216 attribute EventHandler onselectionchange; |
| 217 attribute EventHandler onselectstart; | 217 attribute EventHandler onselectstart; |
| 218 attribute EventHandler onwheel; | 218 attribute EventHandler onwheel; |
| 219 }; | 219 }; |
| 220 | 220 |
| 221 Document implements GlobalEventHandlers; | 221 Document implements GlobalEventHandlers; |
| 222 Document implements ParentNode; | 222 Document implements ParentNode; |
| 223 Document implements NonElementParentNode; | 223 Document implements NonElementParentNode; |
| 224 Document implements DocumentOrShadowRoot; | 224 Document implements DocumentOrShadowRoot; |
| OLD | NEW |