| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 [PerWorldBindings] readonly attribute Node? previousSibling; | 52 [PerWorldBindings] readonly attribute Node? previousSibling; |
| 53 [PerWorldBindings] readonly attribute Node? nextSibling; | 53 [PerWorldBindings] readonly attribute Node? nextSibling; |
| 54 [MeasureAs=NodeRootNode, ImplementedAs=treeRoot] readonly attribute Node roo
tNode; | 54 [MeasureAs=NodeRootNode, ImplementedAs=treeRoot] readonly attribute Node roo
tNode; |
| 55 | 55 |
| 56 [CustomElementCallbacks] attribute DOMString? nodeValue; | 56 [CustomElementCallbacks] attribute DOMString? nodeValue; |
| 57 // FIXME: textContent should not have [TreatUndefinedAs=NullString]. | 57 // FIXME: textContent should not have [TreatUndefinedAs=NullString]. |
| 58 [TreatUndefinedAs=NullString, CustomElementCallbacks] attribute DOMString? t
extContent; | 58 [TreatUndefinedAs=NullString, CustomElementCallbacks] attribute DOMString? t
extContent; |
| 59 [CustomElementCallbacks] void normalize(); | 59 [CustomElementCallbacks] void normalize(); |
| 60 | 60 |
| 61 [NewObject, CustomElementCallbacks] Node cloneNode(optional boolean deep = f
alse); | 61 [NewObject, CustomElementCallbacks] Node cloneNode(optional boolean deep = f
alse); |
| 62 boolean isEqualNode(Node? node); | 62 boolean isEqualNode(Node? otherNode); |
| 63 boolean isSameNode(Node? otherNode); // historical alias of === |
| 63 | 64 |
| 64 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01; | 65 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01; |
| 65 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02; | 66 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02; |
| 66 const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04; | 67 const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04; |
| 67 const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08; | 68 const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08; |
| 68 const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10; | 69 const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10; |
| 69 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; | 70 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; |
| 70 unsigned short compareDocumentPosition(Node other); | 71 unsigned short compareDocumentPosition(Node other); |
| 71 boolean contains(Node? other); | 72 boolean contains(Node? other); |
| 72 | 73 |
| 73 DOMString? lookupPrefix(DOMString? namespaceURI); | 74 DOMString? lookupPrefix(DOMString? namespaceURI); |
| 74 DOMString? lookupNamespaceURI(DOMString? prefix); | 75 DOMString? lookupNamespaceURI(DOMString? prefix); |
| 75 boolean isDefaultNamespace(DOMString? namespaceURI); | 76 boolean isDefaultNamespace(DOMString? namespaceURI); |
| 76 | 77 |
| 77 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node insertBefor
e(Node node, Node? child); | 78 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node insertBefor
e(Node node, Node? child); |
| 78 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node appendChild
(Node node); | 79 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node appendChild
(Node node); |
| 79 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node replaceChil
d(Node node, Node child); | 80 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node replaceChil
d(Node node, Node child); |
| 80 [CustomElementCallbacks, RaisesException] Node removeChild(Node child); | 81 [CustomElementCallbacks, RaisesException] Node removeChild(Node child); |
| 81 | |
| 82 // FIXME: isSameNode has been removed from the spec: | |
| 83 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=27424 | |
| 84 [MeasureAs=NodeIsSameNode, ImplementedAs=isSameNodeDeprecated] boolean isSam
eNode(Node? other); | |
| 85 }; | 82 }; |
| OLD | NEW |