[Webkit-unassigned] [Bug 117766] Make createNodeIterator() and createTreeWalker() accept default arguments

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Aug 20 04:36:31 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=117766

Ahmad Saleem <zlip.792 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zlip.792 at gmail.com

--- Comment #1 from Ahmad Saleem <zlip.792 at gmail.com> ---
Test Cases Results:

<<< TreeWalker-basic.html >>>

**** Safari Technology Preview 151 ****


PASS Construct a TreeWalker by document.createTreeWalker(). 
FAIL Give an invalid root node to document.createTreeWalker(). assert_throws: function "function () { document.createTreeWalker(null); }" threw object "TypeError: Argument 1 ('root') to Document.createTreeWalk..." that is not a DOMException NOT_SUPPORTED_ERR: property "code" is equal to undefined, expected 9
PASS Walk over nodes. 

**** Chrome Canary 106 ****

PASS Construct a TreeWalker by document.createTreeWalker(). 
FAIL Give an invalid root node to document.createTreeWalker(). assert_throws: function "function () { document.createTreeWalker(null); }" threw object "TypeError: Failed to execute 'createTreeWalker' on 'Docum..." that is not a DOMException NOT_SUPPORTED_ERR: property "code" is equal to undefined, expected 9
PASS Walk over nodes. 

**** Firefox Nightly 105 ****

PASS Construct a TreeWalker by document.createTreeWalker(). 
FAIL Give an invalid root node to document.createTreeWalker(). assert_throws: function "function () { document.createTreeWalker(null); }" threw object "TypeError: Document.createTreeWalker: Argument 1 is not a..." that is not a DOMException NOT_SUPPORTED_ERR: property "code" is equal to undefined, expected 9
PASS Walk over nodes. 


<<< NodeIterator-basic.html >>>

**** Safari Technology Preview 151 ****

PASS Construct a NodeIterator by document.createNodeIterator(). 
FAIL Give an invalid root node to document.createNodeIterator(). assert_throws: function "function () { document.createNodeIterator(null); }" threw object "TypeError: Argument 1 ('root') to Document.createNodeIter..." that is not a DOMException NOT_SUPPORTED_ERR: property "code" is equal to undefined, expected 9
PASS Iterate over all nodes forward then backward. 
PASS Iterate over all elements forward then backward. 
PASS Iterate over all text nodes forward then backward. 
PASS Iterate over all comment nodes forward then backward. 
PASS Test the behavior of NodeIterator when no nodes match with the given filter. 
PASS Test the behavior of NodeIterator when NodeFilter is specified. 

*** Firefox Nightly 105 ***


PASS Construct a NodeIterator by document.createNodeIterator(). 
FAIL Give an invalid root node to document.createNodeIterator(). assert_throws: function "function () { document.createNodeIterator(null); }" threw object "TypeError: Document.createNodeIterator: Argument 1 is not..." that is not a DOMException NOT_SUPPORTED_ERR: property "code" is equal to undefined, expected 9
PASS Iterate over all nodes forward then backward. 
PASS Iterate over all elements forward then backward. 
PASS Iterate over all text nodes forward then backward. 
PASS Iterate over all comment nodes forward then backward. 
PASS Test the behavior of NodeIterator when no nodes match with the given filter. 
PASS Test the behavior of NodeIterator when NodeFilter is specified. 

*** Chrome Canary 106 ***

PASS Construct a NodeIterator by document.createNodeIterator(). 
FAIL Give an invalid root node to document.createNodeIterator(). assert_throws: function "function () { document.createNodeIterator(null); }" threw object "TypeError: Failed to execute 'createNodeIterator' on 'Doc..." that is not a DOMException NOT_SUPPORTED_ERR: property "code" is equal to undefined, expected 9
PASS Iterate over all nodes forward then backward. 
PASS Iterate over all elements forward then backward. 
PASS Iterate over all text nodes forward then backward. 
PASS Iterate over all comment nodes forward then backward. 
PASS Test the behavior of NodeIterator when no nodes match with the given filter. 
PASS Test the behavior of NodeIterator when NodeFilter is specified. 

________________

Just wanted to update test results. Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220820/a69a8547/attachment-0001.htm>


More information about the webkit-unassigned mailing list