Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structured document conformance #219

Open
AlexLloyd0 opened this issue Feb 27, 2020 · 0 comments
Open

Structured document conformance #219

AlexLloyd0 opened this issue Feb 27, 2020 · 0 comments

Comments

@AlexLloyd0
Copy link
Contributor

I have a library which uses the HTML-ARIA document conformance data from https://www.w3.org/TR/html-aria/#docconformance.

I parsed the table into a protocol buffer text representation (sample below). A few thoughts:

  1. Something like this would be useful to other projects building accessibility tools. Should some machine-readable format be included in this repo?
  2. Defining the document conformance rules in a structured format could prevent human-error and ensure implicit aria semantics are well-defined. The table in the spec could even be generated from this definition.

Looking for input from the repo owners whether you'd be interested in 1. or 2.

Cheers 🙂

rule {
  equivalent {
    condition {
      attribute_takes_value {
        attribute: "role"
        value: "textbox"
      }
    }
  }
  equivalent {
    condition {
      tag_name: "textarea"
    }
  }
  equivalent {
    condition {
      tag_name: "input"
    }
    condition {
      attribute_takes_value {
        attribute: "type"
        value: "text"
      }
    }
    condition {
      absent_attribute: "list"
    }
  }
  equivalent {
...
@scottaohara scottaohara added this to the ARIA in HTML 1.2 milestone Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants