Source: future-aria-driver.js

  1. // jshint unused: false
  2. 'use strict';
  3. /**
  4. * Methods to be implemented in the future
  5. *
  6. * @hideconstructor
  7. */
  8. class FutureAriaDriver {
  9. /**
  10. * Open a section within an {@link
  11. * https://w3c.github.io/aria-practices/#accordion accordian}.
  12. *
  13. * @param {string} name - the {@link https://w3c.github.io/accname/
  14. * accessible name} of the target section
  15. *
  16. * @throws When an element with the specified accessible name cannot be
  17. * located
  18. * @throws When the target element does not include a button
  19. * @throws When {@link AriaDriver#use using} the target element does not
  20. * set {@link https://w3c.github.io/aria/#aria-expanded the
  21. * `aria-expanded` attribute} of the contained button
  22. */
  23. async openAccordian(name) {}
  24. }