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 22 matching lines...) Expand all Loading... |
98 // Keep all the definitions consistent. | 98 // Keep all the definitions consistent. |
99 // TODO(yukishiino): Support inheritance of attributes defined on instance. | 99 // TODO(yukishiino): Support inheritance of attributes defined on instance. |
100 [PutForwards=href, Unforgeable] readonly attribute Location? location; | 100 [PutForwards=href, Unforgeable] readonly attribute Location? location; |
101 [RaisesException=Setter] attribute DOMString domain; | 101 [RaisesException=Setter] attribute DOMString domain; |
102 readonly attribute DOMString referrer; | 102 readonly attribute DOMString referrer; |
103 [RaisesException] attribute DOMString cookie; | 103 [RaisesException] attribute DOMString cookie; |
104 readonly attribute DOMString lastModified; | 104 readonly attribute DOMString lastModified; |
105 readonly attribute DocumentReadyState readyState; | 105 readonly attribute DocumentReadyState readyState; |
106 | 106 |
107 // DOM tree accessors | 107 // DOM tree accessors |
108 [CustomElementCallbacks] attribute DOMString title; | 108 [CEReactions, CustomElementCallbacks] attribute DOMString title; |
109 [CustomElementCallbacks] attribute DOMString dir; | 109 [CEReactions, CustomElementCallbacks] attribute DOMString dir; |
110 [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings] attribute
HTMLElement? body; | 110 [CEReactions, RaisesException=Setter, CustomElementCallbacks, PerWorldBindin
gs] attribute HTMLElement? body; |
111 readonly attribute HTMLHeadElement? head; | 111 readonly attribute HTMLHeadElement? head; |
112 [SameObject, Measure] readonly attribute HTMLCollection images; | 112 [SameObject, Measure] readonly attribute HTMLCollection images; |
113 [SameObject, Measure] readonly attribute HTMLCollection embeds; | 113 [SameObject, Measure] readonly attribute HTMLCollection embeds; |
114 [SameObject, ImplementedAs=embeds, Measure] readonly attribute HTMLCollectio
n plugins; | 114 [SameObject, ImplementedAs=embeds, Measure] readonly attribute HTMLCollectio
n plugins; |
115 [SameObject, Measure] readonly attribute HTMLCollection links; | 115 [SameObject, Measure] readonly attribute HTMLCollection links; |
116 [SameObject, Measure] readonly attribute HTMLCollection forms; | 116 [SameObject, Measure] readonly attribute HTMLCollection forms; |
117 [SameObject, Measure] readonly attribute HTMLCollection scripts; | 117 [SameObject, Measure] readonly attribute HTMLCollection scripts; |
118 [PerWorldBindings] NodeList getElementsByName(DOMString elementName); | 118 [PerWorldBindings] NodeList getElementsByName(DOMString elementName); |
119 [ImplementedAs=currentScriptForBinding] readonly attribute HTMLOrSVGScriptEl
ement? currentScript; | 119 [ImplementedAs=currentScriptForBinding] readonly attribute HTMLOrSVGScriptEl
ement? currentScript; |
120 | 120 |
121 // dynamic markup insertion | 121 // dynamic markup insertion |
122 // FIXME: There are two open() methods in the spec. | 122 // FIXME: There are two open() methods in the spec. |
123 [Custom, CustomElementCallbacks, RaisesException] void open(); | 123 [Custom, CEReactions, CustomElementCallbacks, RaisesException] void open(); |
124 [RaisesException] void close(); | 124 [CEReactions, RaisesException] void close(); |
125 [CallWith=EnteredWindow, CustomElementCallbacks, RaisesException] void write
(DOMString... text); | 125 [CallWith=EnteredWindow, CEReactions, CustomElementCallbacks, RaisesExceptio
n] void write(DOMString... text); |
126 [CallWith=EnteredWindow, CustomElementCallbacks, RaisesException] void write
ln(DOMString... text); | 126 [CallWith=EnteredWindow, CEReactions, CustomElementCallbacks, RaisesExceptio
n] void writeln(DOMString... text); |
127 | 127 |
128 // user interaction | 128 // user interaction |
129 [ImplementedAs=domWindow] readonly attribute Window? defaultView; | 129 [ImplementedAs=domWindow] readonly attribute Window? defaultView; |
130 boolean hasFocus(); | 130 boolean hasFocus(); |
131 [CustomElementCallbacks, MeasureAs=DocumentDesignMode] attribute DOMString d
esignMode; | 131 [CEReactions, CustomElementCallbacks, MeasureAs=DocumentDesignMode] attribut
e DOMString designMode; |
132 [CustomElementCallbacks, RaisesException] boolean execCommand(DOMString comm
andId, optional boolean showUI = false, optional DOMString value = ""); | 132 [CEReactions, CustomElementCallbacks, RaisesException] boolean execCommand(D
OMString commandId, optional boolean showUI = false, optional DOMString value =
""); |
133 [RaisesException] boolean queryCommandEnabled(DOMString commandId); | 133 [RaisesException] boolean queryCommandEnabled(DOMString commandId); |
134 [RaisesException] boolean queryCommandIndeterm(DOMString commandId); | 134 [RaisesException] boolean queryCommandIndeterm(DOMString commandId); |
135 [RaisesException] boolean queryCommandState(DOMString commandId); | 135 [RaisesException] boolean queryCommandState(DOMString commandId); |
136 [RaisesException] boolean queryCommandSupported(DOMString commandId); | 136 [RaisesException] boolean queryCommandSupported(DOMString commandId); |
137 [RaisesException] DOMString queryCommandValue(DOMString commandId); | 137 [RaisesException] DOMString queryCommandValue(DOMString commandId); |
138 | 138 |
139 [LenientThis] attribute EventHandler onreadystatechange; | 139 [LenientThis] attribute EventHandler onreadystatechange; |
140 | 140 |
141 // HTML obsolete features | 141 // HTML obsolete features |
142 // https://html.spec.whatwg.org/#Document-partial | 142 // https://html.spec.whatwg.org/#Document-partial |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; | 220 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; |
221 attribute EventHandler onselectionchange; | 221 attribute EventHandler onselectionchange; |
222 attribute EventHandler onselectstart; | 222 attribute EventHandler onselectstart; |
223 attribute EventHandler onwheel; | 223 attribute EventHandler onwheel; |
224 }; | 224 }; |
225 | 225 |
226 Document implements GlobalEventHandlers; | 226 Document implements GlobalEventHandlers; |
227 Document implements ParentNode; | 227 Document implements ParentNode; |
228 Document implements NonElementParentNode; | 228 Document implements NonElementParentNode; |
229 Document implements DocumentOrShadowRoot; | 229 Document implements DocumentOrShadowRoot; |
OLD | NEW |