DescriptioncreateTreeWalker and createNodeIterator should deal with null NodeFilter in Document.
spec: http://dom.spec.whatwg.org/#interface-document
According to spec, optional third parameter(NodeFilter)
of createTreeWalker and createNodeIterator can be null.
So this CL modified behavior as per specified.
TEST=LayoutTests/fast/dom/TreeWalker/TreeWalker-basic.html
,LayoutTests/fast/dom/NodeIterator/NodeIterator-basic.html
In addition, with this CL,
Optional arguments to createTreeWalker should be optional (3 passed, null) test
at http://w3c-test.org/dom/nodes/Document-createTreeWalker.html will be passed.
Behavior in other browsers.
*)FF: PASS
*)IE: FAIL
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177560
Patch Set 1 #Patch Set 2 : Take review comment into consideration #
Total comments: 2
Patch Set 3 : Use fully qualified variable name #
Messages
Total messages: 10 (0 generated)
|