*Summary*:

  Adding invoketarget and invokeaction attributes to <button> and <input 
type="button"> / <input type="reset"> elements would allow authors to assign 
behaviour to buttons in a more accessible and declarative way, while reducing 
bugs and simplifying the amount of JavaScript pages are required to ship for 
interactivity. Buttons with invoketarget will - when clicked, touched, or 
enacted via keypress - dispatch an InvokeEvent on the element referenced by 
invoketarget, with some default behaviours.

*Bug*:
 https://bugzilla.mozilla.org/show_bug.cgi?id=1856430

*Specification*:
 https://github.com/whatwg/html/pull/9841

*Standards Body*:
  WHATWG

*Platform coverage*:
  all.

*Preference*:
  dom.element.invokers.enabled

*DevTools bug*:
 n/a.

*Link to standards-positions discussion*:
 https://github.com/mozilla/standards-positions/issues/902

*Other browsers*:
  Blink: Prototyping 
(https://groups.google.com/a/chromium.org/g/blink-dev/c/tDanwUCp2cg/m/IPc9hvHcFAAJ).
  WebKit: No Signal.
*web-platform-tests*:

  
https://wpt.fyi/results/html/semantics/invokers?label=experimental&label=master&aligned

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/3c383a64-c7d8-4ece-86e1-590fda1e27d9%40app.fastmail.com.

Reply via email to