-
Notifications
You must be signed in to change notification settings - Fork 228
Get Accessibility Properties #1960
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
Open
spectranaut
wants to merge
4
commits into
w3c:master
Choose a base branch
from
Igalia:accessibility-properties
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+123
−0
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1040,6 +1040,19 @@ <h3>Endpoints</h3> | |||||
| <td>/session/{<var>session id</var>}/print</td> | ||||||
| <td><a>Print Page</a></td> | ||||||
| </tr> | ||||||
|
|
||||||
| <tr> | ||||||
| <td>GET</td> | ||||||
| <td>/session/{<var>session id</var>}/element/{<var>element id</var>}/accessibilityproperties</td> | ||||||
| <td><a>Get Accessibility Properties</a></td> | ||||||
| </tr> | ||||||
|
|
||||||
| <tr> | ||||||
| <td>GET</td> | ||||||
| <td>/session/{<var>session id</var>}/accessibility/properties/{<var>accessibility id</var>}</td> | ||||||
| <td><a>Get Accessibility Properties For Accessibility Node</a></td> | ||||||
| </tr> | ||||||
|
|
||||||
| </table> | ||||||
| </section> <!-- /Endpoints --> | ||||||
|
|
||||||
|
|
@@ -1193,6 +1206,14 @@ <h3>Errors</h3> | |||||
| and cannot be brought into that viewport. | ||||||
| </tr> | ||||||
|
|
||||||
| <tr> | ||||||
| <td><dfn>no such accessibility node</dfn> | ||||||
| <td>404 | ||||||
| <td><code>no such accessibility node</code> | ||||||
| <td>An <a>accessibility node</a> could not be located on the page | ||||||
| using the given search parameters. | ||||||
| </tr> | ||||||
|
|
||||||
| <tr> | ||||||
| <td><dfn>no such alert</dfn> | ||||||
| <td>404 | ||||||
|
|
@@ -6028,6 +6049,42 @@ <h4><dfn>Get Computed Label</dfn></h4> | |||||
| <li><p>Return <a>success</a> with data <var>label</var>. | ||||||
| </ol> | ||||||
| </section> <!-- /Get Element Computed Label --> | ||||||
|
|
||||||
| <section> | ||||||
| <h4><dfn>Get Accessibility Properties</dfn></h4> | ||||||
|
|
||||||
| <table class="simple jsoncommand"> | ||||||
| <tr> | ||||||
| <th>HTTP Method</th> | ||||||
| <th>URI Template</th> | ||||||
| </tr> | ||||||
| <tr> | ||||||
| <td>GET</td> | ||||||
| <td>/session/{<var>session id</var>}/element/{<var>element id</var>}/accessibilityproperties</td> | ||||||
| </tr> | ||||||
| </table> | ||||||
|
|
||||||
| <p>The <a>remote end steps</a>, given <var>session</var>, <var>URL | ||||||
| variables</var> and <var>parameters</var> are: | ||||||
|
|
||||||
| <ol> | ||||||
| <li><p>If <var>session</var>'s <a>current browsing context</a> is <a>no longer open</a>, | ||||||
| return <a>error</a> with <a>error code</a> <a>no such window</a>. | ||||||
|
|
||||||
| <li><p><a>Try</a> to <a>handle any user prompts</a> | ||||||
| with <var>session</var>. | ||||||
|
|
||||||
| <li><p>Let <var>element</var> be the result | ||||||
| of <a>trying</a> to <a>get a known element</a> | ||||||
| with <var>URL variables</var>["<code>element id</code>"]. | ||||||
|
|
||||||
| <li><p>Let <var>accessible</var> be the <a>accessibility node</a> that corresponds to this element. If no <a>accessibility node</a> exists, return <a>error</a> with <a>error code</a> <a>no such accessibility node</a>. | ||||||
|
|
||||||
| <li><p>Let <var>properties</var> be the result of computing the <a>accessibility properties</a> of <var>accessible</var>. | ||||||
|
|
||||||
| <li><p>Return <a>success</a> with data <var>properties</var>. | ||||||
| </ol> | ||||||
| </section> <!-- /Get Element Accessibility Properties --> | ||||||
| </section> <!-- /State --> | ||||||
|
|
||||||
| <section> | ||||||
|
|
@@ -11116,6 +11173,60 @@ <h3><dfn>Take Element Screenshot</dfn></h3> | |||||
| </section> <!-- /Take Element Screenshot --> | ||||||
| </section> <!-- /Screen capture --> | ||||||
|
|
||||||
| <section> | ||||||
| <h2>Accessibility</h2> | ||||||
|
|
||||||
| <p> An <dfn>accessibility ID</dfn> is a string value representing a handle to an <a>accessibility node</a> in a specific WebDriver session. | ||||||
|
|
||||||
| <p> An <dfn>accessibility node</dfn> is a platform-independent, implementation-defined node in the platform-independent, implementation-defined accessibility tree. The platform-independent, implementation defined accessibility tree is built from the DOM tree for the purposes of interacting with the web page via an <a>accessibility API</a>. Accessibility nodes might exist in this tree for which there is no DOM element back it (for example, one might be create to represent a CSS pseudo element). Additionally, an accessibility node might not be created for every DOM node (for example, if something is intentionally hidden from accessibility APIs using <a>aria-hidden</a>). See the ARIA definition of the <a>accessibility tree</a> for more information. | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit:
Suggested change
|
||||||
|
|
||||||
| <p> <dfn>Accessibility properties</dfn> is a JSON <a>Object</a> that contains the relevant <a>computed accessibility properties</a> of an <a>accessibility node</a>, as well as the following properties: | ||||||
|
|
||||||
| <dl> | ||||||
| <dt>"<code>accessibilityId</code>" | ||||||
| <dd>The <a>accessibility ID</a> of this <a>accessibility node</a>. | ||||||
|
|
||||||
| <dt>"<code>parent</code>" | ||||||
| <dd>The <a>accessibility ID</a> of the parent of this <a>accessibility node</a> in the <a>accessibility tree</a>. | ||||||
|
|
||||||
| <dt>"<code>children</code>" | ||||||
| <dd>A list of <a>accessibility IDs</a> representing the child nodes of this <a>accessibility node</a> in the <a>accessibility tree</a>. | ||||||
| </dl> | ||||||
|
|
||||||
| <section> | ||||||
| <h3><dfn>Get Accessibility Properties for Accessibility Node</dfn></h3> | ||||||
|
|
||||||
| <table class="simple jsoncommand"> | ||||||
| <tr> | ||||||
| <th>HTTP Method</th> | ||||||
| <th>URI Template</th> | ||||||
| </tr> | ||||||
| <tr> | ||||||
| <td>GET</td> | ||||||
| <td>/session/{<var>session id</var>}/accessibiltiy/properties/{<var>accessibility id</var>}/</td> | ||||||
| </tr> | ||||||
| </table> | ||||||
|
|
||||||
| <p>The <a>remote end steps</a>, given <var>session</var>, <var>URL | ||||||
| variables</var> and <var>parameters</var> are: | ||||||
|
|
||||||
| <ol> | ||||||
| <li><p>If <var>session</var>'s <a>current browsing context</a> is <a>no longer open</a>, | ||||||
| return <a>error</a> with <a>error code</a> <a>no such window</a>. | ||||||
|
|
||||||
| <li><p><a>Try</a> to <a>handle any user prompts</a> | ||||||
| with <var>session</var>. | ||||||
|
|
||||||
| <li><p>Let <var>node</var> be the <a>accessibility node</a> with <a>accessibility ID</a> matching the <var>URL variables</var>["<code>accessibility id</code>"]. If no such <a>accessibility node</a> exists, return <a>error</a> with <a>error code</a> <a>no such accessibility node</a>. | ||||||
|
|
||||||
| <li><p>Let <var>properties</var> be the result of computing the <a>accessibility properties</a> of <var>node</var>. | ||||||
|
|
||||||
| <li><p>Return <a>success</a> with data <var>properties</var>. | ||||||
| </ol> | ||||||
|
|
||||||
| </section> <!-- /Get Accessibility Properties for Accessibility Node --> | ||||||
| </section> <!-- /Accessibility --> | ||||||
|
|
||||||
| <section> | ||||||
| <h2>Print</h2> | ||||||
|
|
||||||
|
|
@@ -11603,6 +11714,10 @@ <h2>Index</h2> | |||||
| in the Accessible Rich Internet Applications (WAI-ARIA) 1.2 specification: [[wai-aria-1.2]] | ||||||
| <ul> | ||||||
| <li><dfn><a href="https://w3c.github.io/aria/#introroles">WAI-ARIA role</a></dfn> | ||||||
| <li><dfn><a href="https://w3c.github.io/aria/#accessibility_tree">Accessibility tree</a></dfn> | ||||||
| <li><dfn><a href="https://w3c.github.io/aria/#dfn-accessibility-api">Accessibility API</a></dfn> | ||||||
| <li><dfn><a href="https://w3c.github.io/aria/#aria-hidden">aria-hidden</a></dfn> | ||||||
|
|
||||||
| </ul> | ||||||
|
|
||||||
| <dd> | ||||||
|
|
@@ -11614,6 +11729,14 @@ <h2>Index</h2> | |||||
| Name and Description Computation</a></dfn> | ||||||
| </ul> | ||||||
|
|
||||||
| <dd> | ||||||
| <p>The following terms are defined | ||||||
| in the Core Accessibility API Mappings (Core-AAM) 1.2 specification: [[core-aam-1.2]] | ||||||
| <ul> | ||||||
| <li><dfn><a href="https://w3c.github.io/core-aam/#computed_accessibility_properties">Computed accessibility properties</a></dfn> | ||||||
| </ul> | ||||||
|
|
||||||
|
|
||||||
| <dt>Web App Security | ||||||
| <dd><p>The following terms are defined | ||||||
| in the Content Security Policy Level 3 specification: [[CSP3]] | ||||||
|
|
||||||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I missed this in the last pass. I understand that this links to a section under Elements, but looking at it here in the endpoints section, we see this ambiguity between "get accessibility properties" and "get accessibility properties for accessibility node". Would it make sense to rename this to "Get Accessibility Properties for Element"?