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') threw exception NoModificatio
nAllowedError: Failed to execute 'insertAdjacentHTML' on 'HTMLElement': The elem
ent has no parent.. | 6 PASS div.insertAdjacentHTML('beforeBegin', 'text') threw exception NoModificatio
nAllowedError: Failed to execute 'insertAdjacentHTML' on 'Element': The element
has no parent.. |
7 PASS div.insertAdjacentHTML('afterEnd', 'text') threw exception NoModificationAl
lowedError: Failed to execute 'insertAdjacentHTML' on 'HTMLElement': The element
has no parent.. | 7 PASS div.insertAdjacentHTML('afterEnd', 'text') threw exception NoModificationAl
lowedError: Failed to execute 'insertAdjacentHTML' on 'Element': The element has
no parent.. |
8 PASS div.insertAdjacentHTML('FOO', 'text') threw exception SyntaxError: Failed t
o execute 'insertAdjacentHTML' on 'HTMLElement': The value provided ('FOO') is n
ot one of 'beforeBegin', 'afterBegin', 'beforeEnd', or 'afterEnd'.. | 8 PASS div.insertAdjacentHTML('FOO', 'text') threw exception SyntaxError: Failed t
o execute 'insertAdjacentHTML' on 'Element': The value provided ('FOO') is not o
ne of 'beforeBegin', 'afterBegin', 'beforeEnd', or 'afterEnd'.. |
9 PASS document.documentElement.insertAdjacentHTML('afterEnd', 'text') threw excep
tion NoModificationAllowedError: Failed to execute 'insertAdjacentHTML' on 'HTML
Element': The element has no parent.. | 9 PASS document.documentElement.insertAdjacentHTML('afterEnd', 'text') threw excep
tion NoModificationAllowedError: Failed to execute 'insertAdjacentHTML' on 'Elem
ent': The element has no parent.. |
10 PASS successfullyParsed is true | 10 PASS successfullyParsed is true |
11 | 11 |
12 TEST COMPLETE | 12 TEST COMPLETE |
13 | 13 |
OLD | NEW |