ladybird/Userland/Libraries/LibWeb/HTML/HTMLLabelElement.idl
Tim Ledbetter 6bf22075ed LibWeb: Implement the HTMLLabelElement.form attribute
This returns the form element associated with the given label element's
control or null if the label has no control.
2024-05-18 11:04:04 +02:00

14 lines
356 B
Plaintext

#import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/forms.html#htmllabelelement
[Exposed=Window]
interface HTMLLabelElement : HTMLElement {
[HTMLConstructor] constructor();
readonly attribute HTMLFormElement? form;
[CEReactions, Reflect=for] attribute DOMString htmlFor;
readonly attribute HTMLElement? control;
};