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>
This commit is contained in:
Noah 2025-03-31 01:43:20 -07:00 committed by Sam Atkins
commit 85842c1739
Notes: github-actions[bot] 2025-05-21 14:29:13 +00:00
9 changed files with 300 additions and 10 deletions

View file

@ -7,21 +7,21 @@ interface ElementInternals {
readonly attribute ShadowRoot? shadowRoot;
// Form-associated custom elements
[FIXME] undefined setFormValue((File or USVString or FormData)? value,
undefined setFormValue((File or USVString or FormData)? value,
optional (File or USVString or FormData)? state);
[FIXME] readonly attribute HTMLFormElement? form;
readonly attribute HTMLFormElement? form;
[FIXME] undefined setValidity(optional ValidityStateFlags flags = {},
undefined setValidity(optional ValidityStateFlags flags = {},
optional DOMString message,
optional HTMLElement anchor);
[FIXME] readonly attribute boolean willValidate;
[FIXME] readonly attribute ValidityState validity;
[FIXME] readonly attribute DOMString validationMessage;
[FIXME] boolean checkValidity();
[FIXME] boolean reportValidity();
readonly attribute boolean willValidate;
readonly attribute ValidityState validity;
readonly attribute DOMString validationMessage;
boolean checkValidity();
boolean reportValidity();
[FIXME] readonly attribute NodeList labels;
readonly attribute NodeList labels;
// Custom state pseudo-class
[FIXME, SameObject] readonly attribute CustomStateSet states;