Index: core/dom/TreeWalker.idl |
diff --git a/core/dom/TreeWalker.idl b/core/dom/TreeWalker.idl |
index 2fb6eb58a91b13612dfbecbc75d7b4b41498b015..6cfa8a33f2d08d5b874bb709507423464eca8e8f 100644 |
--- a/core/dom/TreeWalker.idl |
+++ b/core/dom/TreeWalker.idl |
@@ -18,22 +18,22 @@ |
* Boston, MA 02110-1301, USA. |
*/ |
-// Introduced in DOM Level 2 |
+// https://dom.spec.whatwg.org/#interface-treewalker |
+ |
[ |
SetWrapperReferenceTo(NodeFilter filter), |
WillBeGarbageCollected, |
] interface TreeWalker { |
- readonly attribute Node root; |
+ [SameObject] readonly attribute Node root; |
readonly attribute unsigned long whatToShow; |
- readonly attribute NodeFilter filter; |
- [DeprecateAs=TreeWalkerExpandEntityReferences] readonly attribute boolean expandEntityReferences; |
- [RaisesException=Setter] attribute Node currentNode; |
+ readonly attribute NodeFilter? filter; |
+ [RaisesException=Setter] attribute Node currentNode; |
- [RaisesException] Node parentNode(); |
- [RaisesException] Node firstChild(); |
- [RaisesException] Node lastChild(); |
- [RaisesException] Node previousSibling(); |
- [RaisesException] Node nextSibling(); |
- [RaisesException] Node previousNode(); |
- [RaisesException] Node nextNode(); |
+ [RaisesException] Node? parentNode(); |
+ [RaisesException] Node? firstChild(); |
+ [RaisesException] Node? lastChild(); |
+ [RaisesException] Node? previousSibling(); |
+ [RaisesException] Node? nextSibling(); |
+ [RaisesException] Node? previousNode(); |
+ [RaisesException] Node? nextNode(); |
}; |