Pass | Successful attachInternals() and the second call. | Asserts runPass | assert_true(true, "New - 1st call")
at Test.<anonymous> ( /custom-elements/HTMLElement-attachInternals.html:15:3) | Pass | assert_throws_dom("NotSupportedError", function "() => { element.attachInternals(); }", "New - 2nd call")
at Test.<anonymous> ( /custom-elements/HTMLElement-attachInternals.html:17:3) | Pass | assert_true(true, "createElement - 1st call")
at Test.<anonymous> ( /custom-elements/HTMLElement-attachInternals.html:21:3) | Pass | assert_throws_dom("NotSupportedError", function "() => { element.attachInternals(); }", "createElement - 2nd call")
at Test.<anonymous> ( /custom-elements/HTMLElement-attachInternals.html:23:3) | Pass | assert_true(true, "Parser - 1st call")
at Test.<anonymous> ( /custom-elements/HTMLElement-attachInternals.html:27:3) | Pass | assert_throws_dom("NotSupportedError", function "() => { container.firstChild.attachInternals(); }", "Parser - 2nd call")
at Test.<anonymous> ( /custom-elements/HTMLElement-attachInternals.html:29:3) |
|
Pass | attachInternals() throws a NotSupportedError if it is called for a customized built-in element | Asserts runPass | assert_throws_dom("NotSupportedError", function "() => { customizedBuiltin.attachInternals() }")
at Test.<anonymous> ( /custom-elements/HTMLElement-attachInternals.html:38:3) |
|
Pass | If a custom element definition for the local name of the element doesn't exist, throw an NotSupportedError | Asserts runPass | assert_throws_dom("NotSupportedError", function "() => { builtin.attachInternals() }")
at Test.<anonymous> ( /custom-elements/HTMLElement-attachInternals.html:44:3) | Pass | assert_true(true)
at Test.<anonymous> ( /custom-elements/HTMLElement-attachInternals.html:48:3) | Pass | assert_throws_dom("NotSupportedError", function "() => { span.attachInternals(); }")
at Test.<anonymous> ( /custom-elements/HTMLElement-attachInternals.html:49:3) | Pass | assert_throws_dom("NotSupportedError", function "() => { undefinedCustom.attachInternals() }")
at Test.<anonymous> ( /custom-elements/HTMLElement-attachInternals.html:52:3) |
|
Pass | If a custom element definition for the local name of the element has disable internals flag, throw a NotSupportedError | Asserts runPass | assert_throws_dom("NotSupportedError", function "() => { (new MyElement2).attachInternals(); }")
at Test.<anonymous> ( /custom-elements/HTMLElement-attachInternals.html:63:3) | Pass | assert_throws_dom("NotSupportedError", function "() => { document.createElement('my-element2').attachInternals(); }")
at Test.<anonymous> ( /custom-elements/HTMLElement-attachInternals.html:66:3) | Pass | assert_throws_dom("NotSupportedError", function "() => { container.innerHTML = '<my-element2></my-element2>'; container.firstChild.attachInternals(); }")
at Test.<anonymous> ( /custom-elements/HTMLElement-attachInternals.html:69:3) | Pass | assert_true(true)
at Test.<anonymous> ( /custom-elements/HTMLElement-attachInternals.html:78:3) |
|