| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc
alName); | 49 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc
alName); |
| 50 HTMLCollection getElementsByClassName(DOMString classNames); | 50 HTMLCollection getElementsByClassName(DOMString classNames); |
| 51 | 51 |
| 52 [NewObject, CustomElementCallbacks, PerWorldBindings, RaisesException] Eleme
nt createElement(DOMString localName); | 52 [NewObject, CustomElementCallbacks, PerWorldBindings, RaisesException] Eleme
nt createElement(DOMString localName); |
| 53 [NewObject, CustomElementCallbacks, RaisesException] Element createElementNS
(DOMString? namespaceURI, DOMString qualifiedName); | 53 [NewObject, CustomElementCallbacks, RaisesException] Element createElementNS
(DOMString? namespaceURI, DOMString qualifiedName); |
| 54 [NewObject] DocumentFragment createDocumentFragment(); | 54 [NewObject] DocumentFragment createDocumentFragment(); |
| 55 [NewObject] Text createTextNode(DOMString data); | 55 [NewObject] Text createTextNode(DOMString data); |
| 56 [NewObject] Comment createComment(DOMString data); | 56 [NewObject] Comment createComment(DOMString data); |
| 57 [NewObject, RaisesException] ProcessingInstruction createProcessingInstructi
on(DOMString target, DOMString data); | 57 [NewObject, RaisesException] ProcessingInstruction createProcessingInstructi
on(DOMString target, DOMString data); |
| 58 | 58 |
| 59 [NewObject, CustomElementCallbacks, RaisesException, TypeChecking=Interface]
Node importNode(Node node, optional boolean deep = false); | 59 [NewObject, CustomElementCallbacks, RaisesException] Node importNode(Node no
de, optional boolean deep = false); |
| 60 [RaisesException, CustomElementCallbacks, TypeChecking=Interface] Node adopt
Node(Node node); | 60 [RaisesException, CustomElementCallbacks] Node adoptNode(Node node); |
| 61 | 61 |
| 62 [NewObject, RaisesException, MeasureAs=DocumentCreateAttribute] Attr createA
ttribute(DOMString localName); | 62 [NewObject, RaisesException, MeasureAs=DocumentCreateAttribute] Attr createA
ttribute(DOMString localName); |
| 63 [NewObject, RaisesException, MeasureAs=DocumentCreateAttributeNS] Attr creat
eAttributeNS(DOMString? namespaceURI, DOMString qualifiedName); | 63 [NewObject, RaisesException, MeasureAs=DocumentCreateAttributeNS] Attr creat
eAttributeNS(DOMString? namespaceURI, DOMString qualifiedName); |
| 64 | 64 |
| 65 [NewObject, RaisesException] Event createEvent(DOMString eventType); | 65 [NewObject, RaisesException] Event createEvent(DOMString eventType); |
| 66 | 66 |
| 67 [NewObject] Range createRange(); | 67 [NewObject] Range createRange(); |
| 68 | 68 |
| 69 // NodeFilter.SHOW_ALL = 0xFFFFFFFF | 69 // NodeFilter.SHOW_ALL = 0xFFFFFFFF |
| 70 [NewObject, RaisesException, TypeChecking=Interface] NodeIterator createNode
Iterator(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional Nod
eFilter? filter = null); | 70 [NewObject, RaisesException] NodeIterator createNodeIterator(Node root, opti
onal unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null); |
| 71 [NewObject, RaisesException, TypeChecking=Interface] TreeWalker createTreeWa
lker(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFil
ter? filter = null); | 71 [NewObject, RaisesException] TreeWalker createTreeWalker(Node root, optional
unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null); |
| 72 | 72 |
| 73 // FIXME: CDATASection has been removed from the spec. crbug.com/437205 | 73 // FIXME: CDATASection has been removed from the spec. crbug.com/437205 |
| 74 [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createC
DATASection(DOMString data); | 74 [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createC
DATASection(DOMString data); |
| 75 | 75 |
| 76 // FIXME: xmlEncoding/xmlVersion/xmlStandalone have been removed from the sp
ec. | 76 // FIXME: xmlEncoding/xmlVersion/xmlStandalone have been removed from the sp
ec. |
| 77 [MeasureAs=DocumentXMLEncoding] readonly attribute DOMString? xmlEncoding; | 77 [MeasureAs=DocumentXMLEncoding] readonly attribute DOMString? xmlEncoding; |
| 78 [RaisesException=Setter, MeasureAs=DocumentXMLVersion] attribute DOMString?
xmlVersion; | 78 [RaisesException=Setter, MeasureAs=DocumentXMLVersion] attribute DOMString?
xmlVersion; |
| 79 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean
xmlStandalone; | 79 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean
xmlStandalone; |
| 80 | 80 |
| 81 // HTML | 81 // HTML |
| 82 // https://html.spec.whatwg.org/#the-document-object | 82 // https://html.spec.whatwg.org/#the-document-object |
| 83 | 83 |
| 84 // resource metadata management | 84 // resource metadata management |
| 85 | 85 |
| 86 // Inheritance of [Unforgeable] attributes is not supported. So we have to | 86 // Inheritance of [Unforgeable] attributes is not supported. So we have to |
| 87 // define the same unforgeable attributes in derived interfaces as well. | 87 // define the same unforgeable attributes in derived interfaces as well. |
| 88 // See that HTMLDocument and XMLDocument redefine 'location' attribute. | 88 // See that HTMLDocument and XMLDocument redefine 'location' attribute. |
| 89 // Keep all the definitions consistent. | 89 // Keep all the definitions consistent. |
| 90 // TODO(yukishiino): Support inheritance of attributes defined on instance. | 90 // TODO(yukishiino): Support inheritance of attributes defined on instance. |
| 91 [PutForwards=href, Unforgeable] readonly attribute Location? location; | 91 [PutForwards=href, Unforgeable] readonly attribute Location? location; |
| 92 [RaisesException=Setter] attribute DOMString domain; | 92 [RaisesException=Setter] attribute DOMString domain; |
| 93 readonly attribute DOMString referrer; | 93 readonly attribute DOMString referrer; |
| 94 [RaisesException] attribute DOMString cookie; | 94 [RaisesException] attribute DOMString cookie; |
| 95 readonly attribute DOMString lastModified; | 95 readonly attribute DOMString lastModified; |
| 96 readonly attribute DocumentReadyState readyState; | 96 readonly attribute DocumentReadyState readyState; |
| 97 | 97 |
| 98 // DOM tree accessors | 98 // DOM tree accessors |
| 99 [CustomElementCallbacks] attribute DOMString title; | 99 [CustomElementCallbacks] attribute DOMString title; |
| 100 [CustomElementCallbacks] attribute DOMString dir; | 100 [CustomElementCallbacks] attribute DOMString dir; |
| 101 [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings, TypeCheck
ing=Interface] attribute HTMLElement? body; | 101 [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings] attribute
HTMLElement? body; |
| 102 readonly attribute HTMLHeadElement? head; | 102 readonly attribute HTMLHeadElement? head; |
| 103 [SameObject] readonly attribute HTMLCollection images; | 103 [SameObject] readonly attribute HTMLCollection images; |
| 104 [SameObject] readonly attribute HTMLCollection embeds; | 104 [SameObject] readonly attribute HTMLCollection embeds; |
| 105 [SameObject, ImplementedAs=embeds] readonly attribute HTMLCollection plugins
; | 105 [SameObject, ImplementedAs=embeds] readonly attribute HTMLCollection plugins
; |
| 106 [SameObject] readonly attribute HTMLCollection links; | 106 [SameObject] readonly attribute HTMLCollection links; |
| 107 [SameObject] readonly attribute HTMLCollection forms; | 107 [SameObject] readonly attribute HTMLCollection forms; |
| 108 [SameObject] readonly attribute HTMLCollection scripts; | 108 [SameObject] readonly attribute HTMLCollection scripts; |
| 109 [PerWorldBindings] NodeList getElementsByName(DOMString elementName); | 109 [PerWorldBindings] NodeList getElementsByName(DOMString elementName); |
| 110 readonly attribute HTMLScriptElement? currentScript; | 110 readonly attribute HTMLScriptElement? currentScript; |
| 111 | 111 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // Pointer Lock | 160 // Pointer Lock |
| 161 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions
-to-the-document-interface | 161 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions
-to-the-document-interface |
| 162 attribute EventHandler onpointerlockchange; | 162 attribute EventHandler onpointerlockchange; |
| 163 attribute EventHandler onpointerlockerror; | 163 attribute EventHandler onpointerlockerror; |
| 164 [MeasureAs=DocumentPointerLockElement] readonly attribute Element? pointerLo
ckElement; | 164 [MeasureAs=DocumentPointerLockElement] readonly attribute Element? pointerLo
ckElement; |
| 165 [MeasureAs=DocumentExitPointerLock] void exitPointerLock(); | 165 [MeasureAs=DocumentExitPointerLock] void exitPointerLock(); |
| 166 | 166 |
| 167 // Touch Events | 167 // Touch Events |
| 168 // http://rawgit.com/w3c/touch-events/v1-errata/touchevents.html#extensions-
to-the-document-interface | 168 // http://rawgit.com/w3c/touch-events/v1-errata/touchevents.html#extensions-
to-the-document-interface |
| 169 // FIXME: The arguments should not be optional. | 169 // FIXME: The arguments should not be optional. |
| 170 [RuntimeEnabled=Touch, Measure] Touch createTouch([Default=Undefined] option
al Window window, | 170 [RuntimeEnabled=Touch, Measure, LegacyInterfaceTypeChecking] Touch createTou
ch([Default=Undefined] optional Window window, |
| 171 [Default=Undefined] option
al EventTarget target, | 171
[Default=Undefined] optional EventTarget target, |
| 172 [Default=Undefined] option
al long identifier, | 172
[Default=Undefined] optional long identifier, |
| 173 [Default=Undefined] option
al unrestricted double pageX, | 173
[Default=Undefined] optional unrestricted double pageX, |
| 174 [Default=Undefined] option
al unrestricted double pageY, | 174
[Default=Undefined] optional unrestricted double pageY, |
| 175 [Default=Undefined] option
al unrestricted double screenX, | 175
[Default=Undefined] optional unrestricted double screenX, |
| 176 [Default=Undefined] option
al unrestricted double screenY, | 176
[Default=Undefined] optional unrestricted double screenY, |
| 177 [Default=Undefined] option
al unrestricted double radiusX, | 177
[Default=Undefined] optional unrestricted double radiusX, |
| 178 [Default=Undefined] option
al unrestricted double radiusY, | 178
[Default=Undefined] optional unrestricted double radiusY, |
| 179 [Default=Undefined] option
al unrestricted float rotationAngle, | 179
[Default=Undefined] optional unrestricted float rotationAngle, |
| 180 [Default=Undefined] option
al unrestricted float force); | 180
[Default=Undefined] optional unrestricted float force); |
| 181 [RuntimeEnabled=Touch] TouchList createTouchList(Touch... touches); | 181 [RuntimeEnabled=Touch] TouchList createTouchList(Touch... touches); |
| 182 | 182 |
| 183 // Custom Elements | 183 // Custom Elements |
| 184 // http://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-in
terface-to-register | 184 // http://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-in
terface-to-register |
| 185 // FIXME: The registerElement return type should be Function. | 185 // FIXME: The registerElement return type should be Function. |
| 186 [CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=Do
cumentRegisterElement] CustomElementConstructor registerElement(DOMString type,
optional ElementRegistrationOptions options); | 186 [CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=Do
cumentRegisterElement] CustomElementConstructor registerElement(DOMString type,
optional ElementRegistrationOptions options); |
| 187 // http://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-in
terface-to-instantiate | 187 // http://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-in
terface-to-instantiate |
| 188 // FIXME: The typeExtension arguments should not be nullable. | 188 // FIXME: The typeExtension arguments should not be nullable. |
| 189 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl
ement(DOMString localName, DOMString? typeExtension); | 189 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl
ement(DOMString localName, DOMString? typeExtension); |
| 190 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString?
namespaceURI, DOMString qualifiedName, DOMString? typeExtension); | 190 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString?
namespaceURI, DOMString qualifiedName, DOMString? typeExtension); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 214 attribute EventHandler onsearch; | 214 attribute EventHandler onsearch; |
| 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; |
| OLD | NEW |