script: Add an initial command and commandfor attribute implementation (#41237)

Initial command and commandfor attribute implementation

Testing: Covered by WPTs

Signed-off-by: Luke Warlow <lwarlow@igalia.com>
This commit is contained in:
Luke Warlow
2026-02-25 21:40:39 +00:00
committed by GitHub
parent d5c82150e0
commit 035b5d60f4
13 changed files with 337 additions and 250 deletions

View File

@@ -7,6 +7,10 @@
interface HTMLButtonElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions, Pref="dom_command_invokers_enabled"]
attribute DOMString command;
// [CEReactions, Pref="dom_command_invokers_enabled"]
// attribute Element? commandForElement;
// [CEReactions]
// attribute boolean autofocus;
[CEReactions]