Summary

Harness status: OK

Found 6 tests

Details

ResultTest NameMessage
PassCheck the existence of Element.attachShadow
Asserts run
Pass
assert_true(true, "Element.prototype.attachShadow must exist")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:17:5)
Pass
assert_equals("function", "function", "An instance of div must have attachShadow which is a function")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:18:5)
PassNodes other than Element should not have attachShadow
Asserts run
Pass
assert_false(false, "Node.prototype.attachShadow must not exist")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:22:5)
Pass
assert_false(false, "CharacterData.prototype.attachShadow must not exist")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:23:5)
Pass
assert_false(false, "Comment.prototype.attachShadow must not exist")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:24:5)
Pass
assert_equals("undefined", "undefined", "An instance of comment must not have attachShadow")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:25:5)
Pass
assert_false(false, "Document.prototype.attachShadow must not exist")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:26:5)
Pass
assert_equals("undefined", "undefined", "An instance of document must not have attachShadow which is a function")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:27:5)
Pass
assert_false(false, "DocumentFragment.prototype.attachShadow must not exist")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:28:5)
Pass
assert_equals("undefined", "undefined", "An instance of document must not have attachShadow which is a function")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:29:5)
Pass
assert_false(false, "Text.prototype.attachShadow must not exist")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:30:5)
Pass
assert_equals("undefined", "undefined", "An instance of text node must not have attachShadow")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:31:5)
PassElement.attachShadow must throw a TypeError if mode is not "open" or "closed"
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function () {         document.createElement('div').attachShadow({})     }", "attachShadow must throw a TypeError when mode is omitted")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:35:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function () {         document.createElement('div').attachShadow({mode: true})     }", "attachShadow must throw a TypeError when mode is a boolean")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:39:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function () {         document.createElement('div').attachShadow({mode: 1})     }", "attachShadow must throw a TypeError when mode is 1")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:43:5)
PassElement.attachShadow must create an instance of ShadowRoot
Asserts run
Pass
assert_true(true, "attachShadow({mode: \"open\"}) should create an instance of ShadowRoot")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:49:5)
Pass
assert_true(true, "attachShadow({mode: \"closed\"}) should create an instance of ShadowRoot")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:51:5)
PassElement.attachShadow must throw a NotSupportedError if the context object already hosts a shadow tree
Asserts run
Pass
assert_throws_dom("NotSupportedError", function "function () {         var div = document.createElement('div');         div.attachShadow({mode: "open"});         div.attachShadow({mode: "open"});     }", "Calling attachShadow({mode: \"open\"}) twice on the same element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:56:5)
Pass
assert_throws_dom("NotSupportedError", function "function () {         var div = document.createElement('div');         div.attachShadow({mode: "closed"});         div.attachShadow({mode: "closed"});     }", "Calling attachShadow({mode: \"closed\"}) twice on the same element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:62:5)
Pass
assert_throws_dom("NotSupportedError", function "function () {         var div = document.createElement('div');         div.attachShadow({mode: "open"});         div.attachShadow({mode: "closed"});     }", "Calling attachShadow({mode: \"closed\"}) after attachShadow({mode: \"open\"}) on the same element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:68:5)
Pass
assert_throws_dom("NotSupportedError", function "function () {         var div = document.createElement('div');         div.attachShadow({mode: "closed"});         div.attachShadow({mode: "open"});     }", "Calling attachShadow({mode: \"open\"}) after attachShadow({mode: \"closed\"}) on the same element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:74:5)
PassElement.attachShadow must throw a NotSupportedError for non-safelisted elements
Asserts run
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on a element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on a element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on abbr element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on abbr element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on address element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on address element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on area element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on area element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on audio element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on audio element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on b element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on b element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on base element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on base element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on bdi element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on bdi element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on bdo element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on bdo element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on br element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on br element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on button element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on button element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on canvas element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on canvas element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on caption element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on caption element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on cite element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on cite element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on code element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on code element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on col element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on col element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on colgroup element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on colgroup element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on data element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on data element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on datalist element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on datalist element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on dd element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on dd element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on del element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on del element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on details element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on details element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on dfn element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on dfn element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on dialog element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on dialog element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on dl element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on dl element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on dt element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on dt element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on em element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on em element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on embed element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on embed element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on fieldset element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on fieldset element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on figcaption element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on figcaption element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on figure element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on figure element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on form element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on form element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on head element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on head element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on hr element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on hr element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on html element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on html element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on i element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on i element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on iframe element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on iframe element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on img element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on img element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on input element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on input element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on ins element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on ins element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on kbd element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on kbd element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on label element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on label element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on legend element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on legend element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on li element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on li element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on link element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on link element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on map element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on map element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on mark element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on mark element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on menu element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on menu element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on meta element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on meta element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on meter element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on meter element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on noscript element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on noscript element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on object element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on object element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on ol element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on ol element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on optgroup element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on optgroup element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on option element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on option element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on output element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on output element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on param element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on param element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on pre element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on pre element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on progress element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on progress element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on q element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on q element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on rp element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on rp element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on rt element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on rt element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on ruby element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on ruby element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on s element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on s element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on samp element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on samp element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on script element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on script element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on select element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on select element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on slot element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on slot element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on small element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on small element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on source element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on source element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on strong element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on strong element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on style element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on style element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on sub element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on sub element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on sup element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on sup element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on summary element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on summary element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on table element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on table element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on tbody element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on tbody element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on td element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on td element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on template element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on template element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on textarea element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on textarea element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on tfoot element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on tfoot element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on th element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on th element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on thead element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on thead element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on time element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on time element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on title element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on title element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on tr element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on tr element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on track element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on track element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on u element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on u element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on ul element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on ul element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on var element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on var element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on video element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on video element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "open"});         }", "Calling attachShadow({mode: \"open\"}) on wbr element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:83:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             document.createElement(elementName).attachShadow({mode: "closed"});         }", "Calling attachShadow({mode: \"closed\"}) on wbr element must throw")
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow.html:87:9)