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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 readonly attribute DocumentType? doctype; | 51 readonly attribute DocumentType? doctype; |
52 readonly attribute Element? documentElement; | 52 readonly attribute Element? documentElement; |
53 HTMLCollection getElementsByTagName(DOMString localName); | 53 HTMLCollection getElementsByTagName(DOMString localName); |
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, DoNotTestNewObject, CustomElementCallbacks, PerWorldBindings, Ra
isesException] Element createElement(DOMString localName); | 57 [NewObject, DoNotTestNewObject, CustomElementCallbacks, PerWorldBindings, Ra
isesException] Element createElement(DOMString localName); |
58 [NewObject, DoNotTestNewObject, CustomElementCallbacks, RaisesException] Ele
ment createElementNS(DOMString? namespaceURI, DOMString qualifiedName); | 58 [NewObject, DoNotTestNewObject, CustomElementCallbacks, RaisesException] Ele
ment 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, RaisesException] CDATASection createCDATASection(DOMString data)
; |
61 [NewObject] Comment createComment(DOMString data); | 62 [NewObject] Comment createComment(DOMString data); |
62 [NewObject, RaisesException] ProcessingInstruction createProcessingInstructi
on(DOMString target, DOMString data); | 63 [NewObject, RaisesException] ProcessingInstruction createProcessingInstructi
on(DOMString target, DOMString data); |
63 | 64 |
64 [NewObject, DoNotTestNewObject, CEReactions, CustomElementCallbacks, RaisesE
xception] Node importNode(Node node, optional boolean deep = false); | 65 [NewObject, DoNotTestNewObject, CEReactions, CustomElementCallbacks, RaisesE
xception] Node importNode(Node node, optional boolean deep = false); |
65 [RaisesException, CEReactions, CustomElementCallbacks] Node adoptNode(Node n
ode); | 66 [RaisesException, CEReactions, CustomElementCallbacks] Node adoptNode(Node n
ode); |
66 | 67 |
67 [NewObject, RaisesException, MeasureAs=DocumentCreateAttribute] Attr createA
ttribute(DOMString localName); | 68 [NewObject, RaisesException, MeasureAs=DocumentCreateAttribute] Attr createA
ttribute(DOMString localName); |
68 [NewObject, RaisesException, MeasureAs=DocumentCreateAttributeNS] Attr creat
eAttributeNS(DOMString? namespaceURI, DOMString qualifiedName); | 69 [NewObject, RaisesException, MeasureAs=DocumentCreateAttributeNS] Attr creat
eAttributeNS(DOMString? namespaceURI, DOMString qualifiedName); |
69 | 70 |
70 [NewObject, RaisesException, CallWith=ExecutionContext] Event createEvent(DO
MString eventType); | 71 [NewObject, RaisesException, CallWith=ExecutionContext] Event createEvent(DO
MString eventType); |
71 | 72 |
72 [NewObject] Range createRange(); | 73 [NewObject] Range createRange(); |
73 | 74 |
74 // NodeFilter.SHOW_ALL = 0xFFFFFFFF | 75 // NodeFilter.SHOW_ALL = 0xFFFFFFFF |
75 [NewObject] NodeIterator createNodeIterator(Node root, optional unsigned lon
g whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null); | 76 [NewObject] NodeIterator createNodeIterator(Node root, optional unsigned lon
g whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null); |
76 [NewObject] TreeWalker createTreeWalker(Node root, optional unsigned long wh
atToShow = 0xFFFFFFFF, optional NodeFilter? filter = null); | 77 [NewObject] TreeWalker createTreeWalker(Node root, optional unsigned long wh
atToShow = 0xFFFFFFFF, optional NodeFilter? filter = null); |
77 | 78 |
78 // NonDocumentRootScroller (https://github.com/bokand/NonDocumentRootScrolle
r) | 79 // NonDocumentRootScroller (https://github.com/bokand/NonDocumentRootScrolle
r) |
79 [RaisesException=Setter, RuntimeEnabled=SetRootScroller] attribute Element?
rootScroller; | 80 [RaisesException=Setter, RuntimeEnabled=SetRootScroller] attribute Element?
rootScroller; |
80 | 81 |
81 // FIXME: CDATASection has been removed from the spec. crbug.com/437205 | |
82 [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createC
DATASection(DOMString data); | |
83 | |
84 // FIXME: xmlEncoding/xmlVersion/xmlStandalone have been removed from the sp
ec. | 82 // FIXME: xmlEncoding/xmlVersion/xmlStandalone have been removed from the sp
ec. |
85 [MeasureAs=DocumentXMLEncoding] readonly attribute DOMString? xmlEncoding; | 83 [MeasureAs=DocumentXMLEncoding] readonly attribute DOMString? xmlEncoding; |
86 [RaisesException=Setter, MeasureAs=DocumentXMLVersion] attribute DOMString?
xmlVersion; | 84 [RaisesException=Setter, MeasureAs=DocumentXMLVersion] attribute DOMString?
xmlVersion; |
87 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean
xmlStandalone; | 85 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean
xmlStandalone; |
88 | 86 |
89 // HTML | 87 // HTML |
90 // https://html.spec.whatwg.org/#the-document-object | 88 // https://html.spec.whatwg.org/#the-document-object |
91 | 89 |
92 // resource metadata management | 90 // resource metadata management |
93 | 91 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; | 207 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa
ndler onsecuritypolicyviolation; |
210 attribute EventHandler onselectionchange; | 208 attribute EventHandler onselectionchange; |
211 attribute EventHandler onselectstart; | 209 attribute EventHandler onselectstart; |
212 attribute EventHandler onwheel; | 210 attribute EventHandler onwheel; |
213 }; | 211 }; |
214 | 212 |
215 Document implements GlobalEventHandlers; | 213 Document implements GlobalEventHandlers; |
216 Document implements ParentNode; | 214 Document implements ParentNode; |
217 Document implements NonElementParentNode; | 215 Document implements NonElementParentNode; |
218 Document implements DocumentOrShadowRoot; | 216 Document implements DocumentOrShadowRoot; |
OLD | NEW |