Files
ladybird/Tests/LibWeb/Text/expected/wpt-import/custom-elements/upgrading/upgrading-parser-created-element.txt
Tim Ledbetter 7ee33529e8 IDLGenerators: Throw TypeError if custom element is already constructed
Throwing a TypeError instead of an InvalidStateError DOMException
follows the current specification steps.
2025-02-22 05:39:23 -05:00

11 lines
823 B
Plaintext

Harness status: OK
Found 6 tests
6 Pass
Pass Element.prototype.createElement must add an unresolved custom element to the upgrade candidates map
Pass HTMLElement constructor must throw an TypeError when the top of the construction stack is marked AlreadyConstructed due to a custom element constructor constructing itself after super() call
Pass HTMLElement constructor must throw an TypeError when the top of the construction stack is marked AlreadyConstructed due to a custom element constructor constructing itself before super() call
Pass Upgrading a custom element must throw an TypeError when the returned element is not SameValue as the upgraded element
Pass Upgrading a custom element whose constructor returns a Text node must throw
Pass Upgrading a custom element whose constructor returns an Element must throw