mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 18:46:03 +00:00
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.
This commit is contained in:
parent
5296338e7a
commit
6bf22075ed
Notes:
sideshowbarker
2024-07-17 00:49:59 +09:00
Author: https://github.com/tcl3
Commit: 6bf22075ed
Pull-request: https://github.com/SerenityOS/serenity/pull/24346
Reviewed-by: https://github.com/shannonbooth ✅
5 changed files with 60 additions and 1 deletions
12
Tests/LibWeb/Text/expected/HTML/HTMLLabelElement-form.txt
Normal file
12
Tests/LibWeb/Text/expected/HTML/HTMLLabelElement-form.txt
Normal file
|
@ -0,0 +1,12 @@
|
|||
Form for #label-no-for is null
|
||||
Control for #label-no-for is null: true
|
||||
Form for #parent-of-input2: #form2
|
||||
label.form is the same as label.control.form for #parent-of-input2: true
|
||||
Form for #label-for-input2: #form2
|
||||
label.form is the same as label.control.form for #label-for-input2: true
|
||||
Form for #label-for-input1: #form1
|
||||
label.form is the same as label.control.form for #label-for-input1: true
|
||||
Form for #label-for-non-labelable-element is null
|
||||
Control for #label-for-non-labelable-element is null: true
|
||||
Form for #label-for-nonexistent-element is null
|
||||
Control for #label-for-nonexistent-element is null: true
|
Loading…
Add table
Add a link
Reference in a new issue