OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 [PerWorldBindings] readonly attribute Node? parentNode; | 47 [PerWorldBindings] readonly attribute Node? parentNode; |
48 [PerWorldBindings] readonly attribute Element? parentElement; | 48 [PerWorldBindings] readonly attribute Element? parentElement; |
49 [ImplementedAs=hasChildren] boolean hasChildNodes(); | 49 [ImplementedAs=hasChildren] boolean hasChildNodes(); |
50 [SameObject, PerWorldBindings] readonly attribute NodeList childNodes; | 50 [SameObject, PerWorldBindings] readonly attribute NodeList childNodes; |
51 [PerWorldBindings] readonly attribute Node? firstChild; | 51 [PerWorldBindings] readonly attribute Node? firstChild; |
52 [PerWorldBindings] readonly attribute Node? lastChild; | 52 [PerWorldBindings] readonly attribute Node? lastChild; |
53 [PerWorldBindings] readonly attribute Node? previousSibling; | 53 [PerWorldBindings] readonly attribute Node? previousSibling; |
54 [PerWorldBindings] readonly attribute Node? nextSibling; | 54 [PerWorldBindings] readonly attribute Node? nextSibling; |
55 [RuntimeEnabled=ShadowDOMV1, MeasureAs=NodeRootNode, ImplementedAs=treeRoot]
readonly attribute Node rootNode; | 55 [RuntimeEnabled=ShadowDOMV1, MeasureAs=NodeRootNode, ImplementedAs=treeRoot]
readonly attribute Node rootNode; |
56 | 56 |
57 [CustomElementCallbacks] attribute DOMString? nodeValue; | 57 [CEReactions, CustomElementCallbacks] attribute DOMString? nodeValue; |
| 58 |
58 // FIXME: textContent should not have [TreatUndefinedAs=NullString]. | 59 // FIXME: textContent should not have [TreatUndefinedAs=NullString]. |
59 [TreatUndefinedAs=NullString, CustomElementCallbacks] attribute DOMString? t
extContent; | 60 [TreatUndefinedAs=NullString, CEReactions, CustomElementCallbacks] attribute
DOMString? textContent; |
60 [CustomElementCallbacks] void normalize(); | 61 [CEReactions, CustomElementCallbacks] void normalize(); |
61 | 62 |
62 [NewObject, CustomElementCallbacks] Node cloneNode(optional boolean deep = f
alse); | 63 [NewObject, CEReactions, CustomElementCallbacks] Node cloneNode(optional boo
lean deep = false); |
63 boolean isEqualNode(Node? otherNode); | 64 boolean isEqualNode(Node? otherNode); |
64 boolean isSameNode(Node? otherNode); // historical alias of === | 65 boolean isSameNode(Node? otherNode); // historical alias of === |
65 | 66 |
66 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01; | 67 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01; |
67 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02; | 68 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02; |
68 const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04; | 69 const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04; |
69 const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08; | 70 const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08; |
70 const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10; | 71 const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10; |
71 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; | 72 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; |
72 unsigned short compareDocumentPosition(Node other); | 73 unsigned short compareDocumentPosition(Node other); |
73 boolean contains(Node? other); | 74 boolean contains(Node? other); |
74 | 75 |
75 DOMString? lookupPrefix(DOMString? namespaceURI); | 76 DOMString? lookupPrefix(DOMString? namespaceURI); |
76 DOMString? lookupNamespaceURI(DOMString? prefix); | 77 DOMString? lookupNamespaceURI(DOMString? prefix); |
77 boolean isDefaultNamespace(DOMString? namespaceURI); | 78 boolean isDefaultNamespace(DOMString? namespaceURI); |
78 | 79 |
79 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node insertBefor
e(Node node, Node? child); | 80 [CEReactions, CustomElementCallbacks, PerWorldBindings, RaisesException] Nod
e insertBefore(Node node, Node? child); |
80 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node appendChild
(Node node); | 81 [CEReactions, CustomElementCallbacks, PerWorldBindings, RaisesException] Nod
e appendChild(Node node); |
81 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node replaceChil
d(Node node, Node child); | 82 [CEReactions, CustomElementCallbacks, PerWorldBindings, RaisesException] Nod
e replaceChild(Node node, Node child); |
82 [CustomElementCallbacks, RaisesException] Node removeChild(Node child); | 83 [CEReactions, CustomElementCallbacks, RaisesException] Node removeChild(Node
child); |
83 }; | 84 }; |
OLD | NEW |