How to use the aria-query.dom.has function in aria-query

To help you get started, we’ve selected a few aria-query examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github maranran / eslint-plugin-vue-a11y / lib / utils / index.js View on Github external
isInteractiveElement(node) {
    const type = this.getElementType(node);
    if (!dom.has(type)) {
      return false;
    }
    const elementSchemaMatcher = (element) => {
      return type === element.name && this.attributesComparator(element.attributes, node);
    };
    if (interactiveElementRole.some(elementSchemaMatcher)) {
      return true;
    }
    return false;
  },
  attributesComparator (baseAttr = [], node) {