Sam Atkins
4e854ca44a
LibWeb/HTML: Provide a fallback for validation anchor
...
Corresponds to daa3016b40
Also import a related test.
2025-07-08 17:08:39 +01:00
Sam Atkins
b05fe0127b
LibWeb/HTML: Allow more characters in custom element names
...
Corresponds to 78d2678789
And import a related test.
2025-07-08 17:08:39 +01:00
Sam Atkins
202c55bf28
LibWeb/CSS: Implement the :state(foo)
pseudo-class
...
This matches custom elements that have `foo` in their custom states set.
The 2 test failures here are because we don't support `::part()` yet.
2025-07-04 18:10:28 +01:00
Sam Atkins
b6ffea8990
LibWeb: Give Element a CustomStateSet, exposed by ElementInternals
2025-07-04 18:10:28 +01:00
Noah
85842c1739
LibWeb: Stub out several methods for ElementInternals
...
This begins implementation on form-associated custom elements.
This fixes a few WPT tests which I'm importing.
Co-authored-by: Sam Atkins <sam@ladybird.org>
2025-05-21 15:28:10 +01:00
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
Shannon Booth
b5d20538ef
Tests/LibWeb: Add missing empty html document resource for test
...
Which was causing tests to fail in our WPT import.
2025-02-08 07:20:50 -05:00
Tim Ledbetter
08c68cf699
LibWeb: Set is
value when creating a customized built-in element
2025-02-04 20:07:32 +00:00
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
sideshowbarker
e9dedeee34
Tests: Import ARIAMixin string attributes CEReactions tests (no code)
2024-12-20 05:17:05 -08:00
Tim Ledbetter
7cacf5ca55
LibWeb: Report exceptions when invoking custom element reactions
2024-12-19 15:25:08 +00:00
Andrew Kaster
5be4825504
LibWeb: Report exceptions from custom element upgrades to global object
2024-11-24 00:15:59 +00:00