mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-24 18:28:57 +00:00
LibWeb: Implement the labels
attribute for all labelable elements
This returns a `NodeList` of all the labels associated with the given element.
This commit is contained in:
parent
3dc86747f0
commit
2447a25753
Notes:
sideshowbarker
2024-07-16 20:39:14 +09:00
Author: https://github.com/tcl3
Commit: 2447a25753
Pull-request: https://github.com/SerenityOS/serenity/pull/24359
11 changed files with 89 additions and 7 deletions
21
Tests/LibWeb/Text/expected/HTML/HTMLElement-labels.txt
Normal file
21
Tests/LibWeb/Text/expected/HTML/HTMLElement-labels.txt
Normal file
|
@ -0,0 +1,21 @@
|
|||
input.labels.length: 1
|
||||
input.labels[0] === label: true
|
||||
input.labels always returns the same object: true
|
||||
meter.labels.length: 1
|
||||
meter.labels[0] === label: true
|
||||
meter.labels always returns the same object: true
|
||||
output.labels.length: 1
|
||||
output.labels[0] === label: true
|
||||
output.labels always returns the same object: true
|
||||
progress.labels.length: 1
|
||||
progress.labels[0] === label: true
|
||||
progress.labels always returns the same object: true
|
||||
select.labels.length: 1
|
||||
select.labels[0] === label: true
|
||||
select.labels always returns the same object: true
|
||||
textarea.labels.length: 1
|
||||
textarea.labels[0] === label: true
|
||||
textarea.labels always returns the same object: true
|
||||
input.labels returns null if input type is hidden: true
|
||||
input.labels.length after input type is changed from hidden: 1
|
||||
input.labels[0] === label after input type is changed from hidden: true
|
Loading…
Add table
Add a link
Reference in a new issue