OLD | NEW |
1 Test insertAdjacentHTML exceptions to make sure they match HTML5 | 1 Test insertAdjacentHTML exceptions to make sure they match HTML5 |
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 PASS div.insertAdjacentHTML('beforeBegin', 'text') is undefined. | 6 PASS div.insertAdjacentHTML('beforeBegin', 'text') is undefined. |
7 PASS div.insertAdjacentHTML('afterEnd', 'text') is undefined. | 7 PASS div.insertAdjacentHTML('afterEnd', 'text') is undefined. |
8 PASS div.insertAdjacentHTML('FOO', 'text') threw exception Error: SyntaxError: D
OM Exception 12. | 8 PASS div.insertAdjacentHTML('FOO', 'text') threw exception SyntaxError: An inval
id or illegal string was specified.. |
9 PASS document.documentElement.insertAdjacentHTML('afterEnd', 'text') threw excep
tion Error: NoModificationAllowedError: DOM Exception 7. | 9 PASS document.documentElement.insertAdjacentHTML('afterEnd', 'text') threw excep
tion NoModificationAllowedError: An attempt was made to modify an object where m
odifications are not allowed.. |
10 PASS successfullyParsed is true | 10 PASS successfullyParsed is true |
11 | 11 |
12 TEST COMPLETE | 12 TEST COMPLETE |
13 | 13 |
OLD | NEW |