mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibWeb: Implement the HTMLOutputElement.htmlFor attribute
This returns a DOMTokenList that reflects the `for` attribute.
This commit is contained in:
committed by
Andreas Kling
parent
acc1fa3c62
commit
3dc86747f0
Notes:
sideshowbarker
2024-07-17 03:03:37 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/3dc86747f0 Pull-request: https://github.com/SerenityOS/serenity/pull/24344 Reviewed-by: https://github.com/shannonbooth ✅
@@ -0,0 +1,9 @@
|
||||
output.htmlFor is initially empty: true
|
||||
output.htmlFor always returns the same object: true
|
||||
output.htmlFor after setting output.htmlFor to "a": a
|
||||
for attribute value after setting output.htmlFor to "a": a
|
||||
output.htmlFor after calling output.setAttribute("for", "b"): b
|
||||
output.htmlFor after setting output.htmlFor to "c d": c d
|
||||
for attribute value after setting output.htmlFor to "c d": c d
|
||||
output.htmlFor.contains("c"): true
|
||||
output.htmlFor.contains("a"): false
|
||||
Reference in New Issue
Block a user