WICG / aom

Accessibility Object Model
http://wicg.github.io/aom/
Other
572 stars 59 forks source link

Additive Behaviors (aka control patterns, delegate protocols, behavioral mixins, etc) #10

Open cookiecrook opened 8 years ago

cookiecrook commented 8 years ago

There is a shared desire for additive behaviors, taking the form of multiple proposals.

  1. Microsoft UIAutomation "control patterns" InvokePattern, etc. https://msdn.microsoft.com/en-us/library/ms752362(v=vs.110).aspx
  2. Cocoa Protocol examples for view delegates
  3. General JavaScript framework behavioral mix-ins
  4. Class-less JavaScript using apply() to inherit functionality from other objects

The biggest challenge here is that, despite mix-ins being common in JavaScript frameworks, there is no precedent for this in DOM or another web standard, so we want to be cautious that any proposal fits well within the Web Platform.

robdodson commented 8 years ago

Example accessibility specific mixin from Polymer / Web Components land https://elements.polymer-project.org/elements/iron-a11y-keys-behavior

robdodson commented 8 years ago

This may be covered by one of the above but I'd also throw in something like https://html.spec.whatwg.org/multipage/interaction.html#run-synthetic-click-activation-steps. Very handy that defining an onclick on button gets triggered by enter or space. I'd love to have this for custom elements.