LibWeb/HTML: Add the commandForElement attribute to the button element

This commit adds the commandForElement attribute to the
button element. Executing commands is not implemented yet.
This commit is contained in:
Glenn Skrzypczak
2025-04-04 01:27:55 +02:00
committed by Tim Ledbetter
parent b2db07f002
commit ffe0b05abd
Notes: github-actions[bot] 2025-04-18 11:11:13 +00:00
6 changed files with 144 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
Harness status: OK
Found 11 tests
11 Pass
Pass commandForElement reflects invokee HTML element
Pass commandForElement reflects set value
Pass commandForElement reflects set value across shadow root into light dom
Pass commandForElement does not reflect set value inside shadowroot
Pass commandForElement throws error on assignment of non Element
Pass command reflects '' when attribute empty, setAttribute version
Pass command reflects correctly for invalid
Pass command reflects '' when attribute empty, IDL version
Pass command reflects correctly for invalid when array
Pass command reflects '' when attribute set to []
Pass command reflects correctly for invalid when object