Element-interface-attachShadow.html
Details
- Test
/shadow-dom/Element-interface-attachShadow.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| FAIL | Check the existence of Element.attachShadow assert_true: Element.prototype.attachShadow must exist expected true got false |
| PASS | Nodes other than Element should not have attachShadow |
| PASS | Element.attachShadow must throw a TypeError if mode is not "open" or "closed" |
| PASS | Element.attachShadow must create an instance of ShadowRoot |
| PASS | Element.attachShadow must throw a NotSupportedError if the context object already hosts a shadow tree |
| FAIL | Element.attachShadow must throw a NotSupportedError for non-safelisted elements assert_throws_dom: Calling attachShadow({mode: "open"}) on a element must throw function "function () {
document.createElement(elementName).attachShadow({mode: "open"});
}" did not… |