Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(639)

Unified Diff: Source/core/dom/TreeWalker.idl

Issue 966213002: Sync the DOM traversal interfaces with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: make filter attributes nullable Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/NodeIterator.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/TreeWalker.idl
diff --git a/Source/core/dom/TreeWalker.idl b/Source/core/dom/TreeWalker.idl
index cd5d6594be221c725d0c42ff05694059d09cba35..50ade191fd7dcb97044847d6086dbae3f8b6444e 100644
--- a/Source/core/dom/TreeWalker.idl
+++ b/Source/core/dom/TreeWalker.idl
@@ -18,21 +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;
readonly attribute unsigned long whatToShow;
- readonly attribute NodeFilter filter;
+ 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();
};
« no previous file with comments | « Source/core/dom/NodeIterator.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698