1 This test checks behavior of Node.contains.
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7 PASS typeof document.contains is "function"
8 PASS test1.contains(test2) is true
9 PASS test1.contains(test1TextChild) is true
10 PASS document.contains(test1) is true
11 PASS document.contains(test1TextChild) is true
12 PASS document.contains(document) is true
13 PASS test1.contains(test1) is true
14 PASS test1TextChild.contains(test1TextChild) is true
15 PASS test1.contains(123) threw exception TypeError: Failed to execute 'contains' on 'Node': parameter 1 is not of type 'Node'..
16 PASS test1.contains(null) is false
17 PASS document.contains(iframe) is false
18 PASS iframe.contains(iframe) is true
19 iframe is now in document
20 PASS document.contains(iframe) is true
21 PASS document.contains(iframeDoc) is false
22 PASS iframeDoc.contains(iframeBody) is true
23 PASS document.contains(iframeBody) is false
24 PASS successfullyParsed is true