1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

LibWeb: Add basic support for HTMLInputElement.form

HTMLInputElement now inherits from FormAssociatedElement, which will
be a common base for the handful of elements that need to track their
owner form (and register with it for the form.elements collection.)

At the moment, the owner form is assigned during DOM insertion/removal
of an HTMLInputElement. I didn't implement any of the legacy behaviors
defined by the HTML parsing spec yet.
This commit is contained in:
Andreas Kling 2021-04-20 11:50:29 +02:00
parent 00d8e3b02b
commit b092353e4d
8 changed files with 110 additions and 4 deletions

View file

@ -1,5 +1,7 @@
interface HTMLInputElement : HTMLElement {
readonly attribute HTMLFormElement? form;
[Reflect] attribute DOMString accept;
[Reflect] attribute DOMString alt;
[Reflect] attribute DOMString max;