editorial: [aria.js] populate global states&props lists in pre-processing#2766
Draft
editorial: [aria.js] populate global states&props lists in pre-processing#2766
Conversation
…sing
- index.html
- roletype role characteristics table
- replace placeholder span with empty ul with data attribute
- Global States and Properties section
- replace placeholder p with empty ul with data attribute
- common/script/aria.js
- remove buildGlobalStatesAndPropertiesList()
- remove renderIndexGlobalStatesAndProperties()
- ariaAttributeReferences()
- remove calls to both of the above
- common/script/ariaPreprocessing.js
- add buildGlobalStatesAndPropertiesLists()
- a merger of the two functions from aria.js
- uses HTML markup directly/only to generate list items
- ariaPreprocessing()
- call buildGlobalStatesAndPropertiesLists() with relevant placeholders
- clean up placeholder markup
Part of #2501
✅ Deploy Preview for wai-aria ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
🚀 Deployed on https://deploy-preview-2766--wai-aria.netlify.app |
Member
Author
|
The only change in the final spec markup is an additional abbr around ARIA 1.2. This is introduced by respec now that these are generated before respec runs. A rough local diff 8421c8421
< <li><a href="https://w3c.github.io/aria/#aria-disabled" class="state-reference"><code>aria-disabled (state)</code></a> (Global use deprecated in ARIA 1.2)</li>
---
> <li><a href="https://w3c.github.io/aria/#aria-disabled" class="state-reference"><code>aria-disabled (state)</code></a> (Global use deprecated in <abbr title="Accessible Rich Internet Applications">ARIA</abbr> 1.2)</li>
8423c8423
< <li><a href="https://w3c.github.io/aria/#aria-errormessage" class="property-reference"><code>aria-errormessage</code></a> (Global use deprecated in ARIA 1.2)</li>
---
> <li><a href="https://w3c.github.io/aria/#aria-errormessage" class="property-reference"><code>aria-errormessage</code></a> (Global use deprecated in <abbr title="Accessible Rich Internet Applications">ARIA</abbr> 1.2)</li>
8426c8426
< <li><a href="https://w3c.github.io/aria/#aria-haspopup" class="property-reference"><code>aria-haspopup</code></a> (Global use deprecated in ARIA 1.2)</li>
---
> <li><a href="https://w3c.github.io/aria/#aria-haspopup" class="property-reference"><code>aria-haspopup</code></a> (Global use deprecated in <abbr title="Accessible Rich Internet Applications">ARIA</abbr> 1.2)</li>
8428c8428
< <li><a href="https://w3c.github.io/aria/#aria-invalid" class="state-reference"><code>aria-invalid (state)</code></a> (Global use deprecated in ARIA 1.2)</li>
---
> <li><a href="https://w3c.github.io/aria/#aria-invalid" class="state-reference"><code>aria-invalid (state)</code></a> (Global use deprecated in <abbr title="Accessible Rich Internet Applications">ARIA</abbr> 1.2)</li>
12261c12261
< <li><a href="https://w3c.github.io/aria/#aria-disabled" class="state-reference"><code>aria-disabled (state)</code></a> (Global use deprecated in ARIA 1.2)</li>
---
> <li><a href="https://w3c.github.io/aria/#aria-disabled" class="state-reference"><code>aria-disabled (state)</code></a> (Global use deprecated in <abbr title="Accessible Rich Internet Applications">ARIA</abbr> 1.2)</li>
12263c12263
< <li><a href="https://w3c.github.io/aria/#aria-errormessage" class="property-reference"><code>aria-errormessage</code></a> (Global use deprecated in ARIA 1.2)</li>
---
> <li><a href="https://w3c.github.io/aria/#aria-errormessage" class="property-reference"><code>aria-errormessage</code></a> (Global use deprecated in <abbr title="Accessible Rich Internet Applications">ARIA</abbr> 1.2)</li>
12266c12266
< <li><a href="https://w3c.github.io/aria/#aria-haspopup" class="property-reference"><code>aria-haspopup</code></a> (Global use deprecated in ARIA 1.2)</li>
---
> <li><a href="https://w3c.github.io/aria/#aria-haspopup" class="property-reference"><code>aria-haspopup</code></a> (Global use deprecated in <abbr title="Accessible Rich Internet Applications">ARIA</abbr> 1.2)</li>
12268c12268
< <li><a href="https://w3c.github.io/aria/#aria-invalid" class="state-reference"><code>aria-invalid (state)</code></a> (Global use deprecated in ARIA 1.2)</li>
---
> <li><a href="https://w3c.github.io/aria/#aria-invalid" class="state-reference"><code>aria-invalid (state)</code></a> (Global use deprecated in <abbr title="Accessible Rich Internet Applications">ARIA</abbr> 1.2)</li> |
Member
Author
|
Sigh. Once again I forgot to double check roleInfo generation. Moving this back to draft PR. |
daniel-montalvo
approved these changes
Apr 14, 2026
Contributor
daniel-montalvo
left a comment
There was a problem hiding this comment.
Thanks @pkra for working on this.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🚀 Netlify Preview:
🔄 this PR updates the following sspecs:
ARIA preview — ARIA diff
index.html
common/script/aria.js
common/script/ariaPreprocessing.js
Part of #2501