Files
ladybird/Tests/LibWeb/Text/expected/wpt-import/custom-elements/parser/parser-fallsback-to-unknown-element.txt
Tim Ledbetter 619df0bc2c LibWeb: Don't crash when upgrading custom element with a bad constructor
Previously, a crash would occur when attempting to throw an error in
this case because the method used to create the exception tried to get
the current realm from the execution context stack, which is empty. The
realm is now passed explicitly when constructing the error, avoiding
the crash.
2025-01-13 10:55:46 +00:00

9 lines
502 B
Plaintext

Harness status: OK
Found 4 tests
4 Pass
Pass HTML parser must create a fallback HTMLUnknownElement when a custom element constructor returns a Text node
Pass HTML parser must create a fallback HTMLUnknownElement when a custom element constructor returns non-Element object
Pass HTML parser must create a fallback HTMLUnknownElement when a custom element constructor does not call super()
Pass HTML parser must create a fallback HTMLUnknownElement when a custom element constructor throws an exception