Found 8 tests
Result | Test Name | Message |
---|---|---|
Pass | insertAdjacentHTML(beforebegin, <div><h3>beforebegin</h3></div> ) | |
Pass | insertAdjacentHTML(afterbegin, <div><h3>afterbegin</h3></div> ) | |
Pass | insertAdjacentHTML(beforeend, <div><h3>beforeend</h3></div> ) | |
Pass | insertAdjacentHTML(afterend, <div><h3>afterend</h3></div> ) | |
Fail | W3C editors spec: Throws a TypeError exception if the position argument has an invalid value. | assert_throws: function "function() { el.insertAdjacentHTML("giberish", "giberis..." threw object "SyntaxError: Failed to execute 'insertAdjacentHTML' on 'E..." ("SyntaxError") expected object "TypeError" ("TypeError") |
Pass | WhatWG editors spec: Throws a DOM SyntaxError exception if the position argument has an invalid value. | |
Fail | Throws a DOMException with name NoModificationAllowedError if the given position isn't possible. Inserting elements before the root element of a Document. | assert_throws: function "function() { var root = document.documentElement; htm..." threw object "ReferenceError: html is not defined" that is not a DOMException NoModificationAllowedError: property "code" is equal to undefined, expected 7 |
Fail | Throws a DOMException with name NoModificationAllowedError if the given position isn't possible. Inserting elements after the end of the root element of a Document. | assert_throws: function "function() { var root = document.documentElement; htm..." threw object "ReferenceError: html is not defined" that is not a DOMException NoModificationAllowedError: property "code" is equal to undefined, expected 7 |