LibWeb: Implement the HTMLOptionElement.form attribute

This returns the parent form of a HTMLOptionElement or null if the
element has no parent form.
This commit is contained in:
Tim Ledbetter 2024-05-15 22:54:17 +01:00 committed by Andreas Kling
commit 763b7f0e0c
Notes: sideshowbarker 2024-07-18 00:41:35 +09:00
5 changed files with 64 additions and 1 deletions

View file

@ -6,7 +6,7 @@ interface HTMLOptionElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions, Reflect] attribute boolean disabled;
// FIXME: readonly attribute HTMLFormElement? form;
readonly attribute HTMLFormElement? form;
[CEReactions, Reflect] attribute DOMString label;
[CEReactions, Reflect=selected] attribute boolean defaultSelected;
attribute boolean selected;