OLD | NEW |
1 This page tests the DOM createHTMLDocument method. | 1 This page tests the DOM createHTMLDocument method. |
2 | 2 |
3 If the test passes, you'll see a series of 'PASS' messages below. | 3 If the test passes, you'll see a series of 'PASS' messages below. |
4 | 4 |
5 [document with title 'title'] | 5 [document with title 'title'] |
6 PASS: doc.title should be title and is. | 6 PASS: doc.title should be title and is. |
7 PASS: doc.getElementsByTagName('html').length should be 1 and is. | 7 PASS: doc.getElementsByTagName('html').length should be 1 and is. |
8 PASS: doc.getElementsByTagName('head').length should be 1 and is. | 8 PASS: doc.getElementsByTagName('head').length should be 1 and is. |
9 PASS: doc.getElementsByTagName('title').length should be 1 and is. | 9 PASS: doc.getElementsByTagName('title').length should be 1 and is. |
10 PASS: doc.getElementsByTagName('body').length should be 1 and is. | 10 PASS: doc.getElementsByTagName('body').length should be 1 and is. |
11 [document with title ''] | 11 [document with title ''] |
12 PASS: doc.title should be and is. | 12 PASS: doc.title should be and is. |
| 13 PASS: doc.getElementsByTagName('title').item(0).firstChild.data should be and is
. |
13 [document with null title] | 14 [document with null title] |
14 PASS: doc.title should be null and is. | 15 PASS: doc.title should be null and is. |
OLD | NEW |