| OLD | NEW |
| 1 This tests that various combinations of replaceChild on the document works as sp
ecified. | 1 This tests that various combinations of replaceChild on the document works as sp
ecified. |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 replacing element with element | 6 replacing element with element |
| 7 PASS doc.replaceChild(newChild, doc.documentElement) did not throw exception. | 7 PASS doc.replaceChild(newChild, doc.documentElement) did not throw exception. |
| 8 <!DOCTYPE html><div/> | 8 <!DOCTYPE html><div/> |
| 9 | 9 |
| 10 replacing element with element in fragment | 10 replacing element with element in fragment |
| 11 PASS doc.replaceChild(fragment, doc.documentElement); did not throw exception. | 11 PASS doc.replaceChild(fragment, doc.documentElement); did not throw exception. |
| 12 <!DOCTYPE html><div/> | 12 <!DOCTYPE html><div/> |
| 13 | 13 |
| 14 replacing element with multiple elements in fragment | 14 replacing element with multiple elements in fragment |
| 15 PASS doc.replaceChild(fragment, doc.documentElement); threw exception HierarchyR
equestError: Failed to execute 'replaceChild' on 'Node': Failed to replace child
.. | 15 PASS doc.replaceChild(fragment, doc.documentElement); threw exception HierarchyR
equestError: Failed to execute 'replaceChild' on 'Node': Only one element on doc
ument allowed.. |
| 16 <!DOCTYPE html><body/> | 16 <!DOCTYPE html><body/> |
| 17 | 17 |
| 18 replacing element with doctype | 18 replacing element with doctype |
| 19 PASS doc.replaceChild(newChild, doc.documentElement) did not throw exception. | 19 PASS doc.replaceChild(newChild, doc.documentElement) did not throw exception. |
| 20 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
.1/DTD/svg11.dtd"> | 20 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
.1/DTD/svg11.dtd"> |
| 21 | 21 |
| 22 replacing element with doctype when a doctype already exists | 22 replacing element with doctype when a doctype already exists |
| 23 PASS doc.replaceChild(newChild, doc.documentElement) threw exception HierarchyRe
questError: Failed to execute 'replaceChild' on 'Node': Failed to replace child.
. | 23 PASS doc.replaceChild(newChild, doc.documentElement) threw exception HierarchyRe
questError: Failed to execute 'replaceChild' on 'Node': Only one doctype on docu
ment allowed.. |
| 24 <!DOCTYPE html><body/> | 24 <!DOCTYPE html><body/> |
| 25 | 25 |
| 26 replacing doctype with doctype | 26 replacing doctype with doctype |
| 27 PASS doc.replaceChild(newChild, doc.doctype) did not throw exception. | 27 PASS doc.replaceChild(newChild, doc.doctype) did not throw exception. |
| 28 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
.1/DTD/svg11.dtd"><body/> | 28 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
.1/DTD/svg11.dtd"><body/> |
| 29 | 29 |
| 30 replacing doctype with element | 30 replacing doctype with element |
| 31 PASS doc.replaceChild(newChild, doc.doctype) did not throw exception. | 31 PASS doc.replaceChild(newChild, doc.doctype) did not throw exception. |
| 32 <bar/> | 32 <bar/> |
| 33 | 33 |
| 34 replacing element with doctype when an element already exists | 34 replacing element with doctype when an element already exists |
| 35 PASS doc.replaceChild(newChild, doc.documentElement) threw exception HierarchyRe
questError: Failed to execute 'replaceChild' on 'Node': Failed to replace child.
. | 35 PASS doc.replaceChild(newChild, doc.documentElement) threw exception HierarchyRe
questError: Failed to execute 'replaceChild' on 'Node': Only one doctype on docu
ment allowed.. |
| 36 <!DOCTYPE html><body/> | 36 <!DOCTYPE html><body/> |
| 37 | 37 |
| 38 PASS successfullyParsed is true | 38 PASS successfullyParsed is true |
| 39 | 39 |
| 40 TEST COMPLETE | 40 TEST COMPLETE |
| 41 | 41 |
| OLD | NEW |