Skip to content

Commit fa0b411

Browse files
authored
Merge branch 'main' into popover-states-clarification
2 parents 9052224 + 56bc62f commit fa0b411

25 files changed

+2168
-163
lines changed

.github/pull_request_template.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ Closes #????
22

33
Describe Change Here!
44

5-
<!--- IF EDITORIAL or CHORE, delete the rest of this template -->
5+
And a few other todo items (delete this section after performing them):
6+
* [ ] For every spec that this PR edits, please add the appropriate `spec:<spec_name>` label. If you don't have privileges to do this, editors will do it for you.
7+
* [ ] If the change is [editorial](https://github.com/w3c/aria/blob/main/documentation/process.md#editorial-changes), please add "Editorial:" at the start of your PR name, and delete the "Test, Documentation and Implementation tracking" section below.
68

79
# Test, Documentation and Implementation tracking
810
Once this PR has been reviewed and has consensus from the working group, tests should be written and issues should be opened on browsers. Add N/A and check when not applicable.

accname/index.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<script src="../common/script/resolveReferences.js" class="remove"></script>
99
<script src="../common/script/utility.js" class="remove"></script>
1010
<script src="../common/biblio.js" class="remove" defer="defer"></script>
11+
<script src="../common/script/participants.js" class="remove"></script>
1112
<script class="remove">
1213
var respecConfig = {
1314
github: "w3c/accname",
@@ -131,7 +132,7 @@
131132
REC: "https://www.w3.org/WAI/ARIA/apg/",
132133
},
133134

134-
preProcess: [linkCrossReferences],
135+
preProcess: [linkCrossReferences, getParticipants],
135136
postProcess: [addPlatformMaintainers],
136137
//Pointing to the 1.2 versions but should remove the version in the publishing branch
137138
xref: ["dom", "core-aam-1.2", "wai-aria-1.2", "infra"],
@@ -784,7 +785,15 @@ <h2>Substantive changes since the <a href="https://www.w3.org/TR/accname-1.1/">A
784785
<section class="appendix informative section" id="acknowledgements">
785786
<h3>Acknowledgments</h3>
786787
<p>The following people contributed to the development of this document.</p>
787-
<div data-include="../common/acknowledgements/aria-wg-active.html" data-include-replace="true"></div>
788+
<ul id="gh-contributors">
789+
<!-- GitHub contributors go here -->
790+
</ul>
791+
<section class="section" id="ack_group">
792+
<h4>ARIA WG participants at the time of publication</h4>
793+
<ul>
794+
<!-- List of participants is injected here -->
795+
</ul>
796+
</section>
788797
<div data-include="../common/acknowledgements/funders.html" data-include-replace="true"></div>
789798
</section>
790799
</section>

common/script/participants.js

Lines changed: 13 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -8,43 +8,19 @@ function getParticipants() {
88
// Define the ID of the list element where the user information will be inserted
99
const LIST_ID = "ack_group";
1010

11-
/**
12-
* Fetches users and their affiliations from the API and returns an array of user information.
13-
* Each element in the array is an object containing the user's title and affiliation.
14-
*
15-
* @async
16-
* @function getUsersInfo
17-
* @returns {Promise<Array<{title: string, affiliation: string}>>} - A promise that resolves to an array of user information.
18-
*/
1911
async function getUsersInfo() {
20-
// Send a GET request to the users endpoint
2112
const response = await fetch(`${BASE_URL}/users`);
22-
// Fetch the JSON data from the response
2313
const data = await response.json();
24-
// Extract the list of users
2514
const users = data._links.users;
26-
27-
// Initialize an empty array to store user information
28-
let usersInfo = [];
29-
// Iterate over each user
30-
for (const user of users) {
31-
// Fetch the affiliation of the current user
15+
16+
const usersInfo = await Promise.all(users.map(async (user) => {
3217
const affiliation = await getAffiliation(user);
33-
// Push an object containing the user's title and affiliation to the usersInfo array
34-
usersInfo.push({ title: user.title, affiliation: affiliation });
35-
}
36-
// Return the array containing information of all users
18+
return { title: user.title, affiliation: affiliation };
19+
}));
20+
3721
return usersInfo;
3822
}
39-
40-
/**
41-
* Fetches the affiliation of a given user from the API.
42-
*
43-
* @async
44-
* @function getAffiliation
45-
* @param {Object} user - The user object.
46-
* @returns {Promise<string>} - A promise that resolves to the title of the user's affiliation.
47-
*/
23+
4824
async function getAffiliation(user) {
4925
// Send a GET request to the affiliations endpoint of the user
5026
const response = await fetch(user.href + "/affiliations/");
@@ -58,23 +34,18 @@ function getParticipants() {
5834
// Return the title of the affiliation
5935
return affiliation;
6036
}
61-
62-
/**
63-
* Fetches users and their affiliations, creates a list item for each user with their title and affiliation,
64-
* and appends these list items to a specified list in the document.
65-
*
66-
* @async
67-
* @function insertUsersInfoIntoDocument
68-
*/
6937
async function insertUsersInfoIntoDocument() {
7038
const usersInfo = await getUsersInfo();
7139
const usersList = document.querySelector(`#${LIST_ID} ul`);
72-
73-
for (const user of usersInfo) {
40+
const fragment = document.createDocumentFragment();
41+
42+
usersInfo.forEach(user => {
7443
const li = document.createElement("li");
7544
li.textContent = `${user.title} (${user.affiliation})`;
76-
usersList.appendChild(li);
77-
}
45+
fragment.appendChild(li);
46+
});
47+
48+
usersList.appendChild(fragment);
7849
}
7950

8051
insertUsersInfoIntoDocument();

core-aam/index.html

Lines changed: 115 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<script src="../common/script/resolveReferences.js" class="remove"></script>
88
<script src="../common/script/utility.js" class="remove"></script>
99
<script src="../common/biblio.js" class="remove" defer></script>
10+
<script src="../common/script/participants.js" class="remove"></script>
1011

1112
<link href="../common/css/mapping-tables.css" rel="stylesheet" type="text/css" />
1213
<link href="../common/css/common.css" rel="stylesheet" type="text/css" />
@@ -130,7 +131,7 @@
130131
REC: "https://www.w3.org/TR/accname-1.2/",
131132
},
132133

133-
preProcess: [linkCrossReferences],
134+
preProcess: [linkCrossReferences, getParticipants],
134135
postProcess: [addPlatformMaintainers],
135136
xref: ["dom", "accname", "wai-aria", "infra"],
136137
};
@@ -4320,6 +4321,9 @@ <h4 id="role-map-searchbox"><code>searchbox</code></h4>
43204321
><br />
43214322
<span class="property">Object Attribute: <code>xml-roles:searchbox</code></span
43224323
><br />
4324+
<span class="property">Object Attribute: <code>text-input-type:search</code>
4325+
</span>
4326+
<br />
43234327
<span class="property"
43244328
>Interface: <code>EditableText</code> if <a class="property-reference" href="#aria-readonly"><code>aria-readonly</code></a> is not <code>&quot;true&quot;</code></span
43254329
>
@@ -4338,6 +4342,109 @@ <h4 id="role-map-searchbox"><code>searchbox</code></h4>
43384342
</tr>
43394343
</tbody>
43404344
</table>
4345+
<h4 id="role-map-sectionfooter"><code>sectionfooter</code></h4>
4346+
<table aria-labelledby="role-map-sectionfooter">
4347+
<tbody>
4348+
<tr>
4349+
<th>ARIA Specification</th>
4350+
<td>
4351+
<a class="role-reference" href="#sectionfooter"><code>sectionfooter</code></a>
4352+
</td>
4353+
</tr>
4354+
<tr>
4355+
<th>Computed Role</th>
4356+
<td>
4357+
<p><code>sectionfooter</code></p>
4358+
</td>
4359+
</tr>
4360+
<tr>
4361+
<th>MSAA + IAccessible2</th>
4362+
<td>
4363+
<span class="property">Role: <code>ROLE_SYSTEM_GROUPING</code></span
4364+
><br />
4365+
<span class="property">Object Attribute: <code>xml-roles:sectionfooter</code></span>
4366+
</td>
4367+
</tr>
4368+
<tr>
4369+
<th><abbr title="User Interface Automation">UIA</abbr></th>
4370+
<td>
4371+
<span class="property">Control Type: <code>Group</code></span
4372+
><br />
4373+
<span class="property">Localized Control Type: <code>section footer</code></span>
4374+
</td>
4375+
</tr>
4376+
<tr>
4377+
<th><abbr title="Accessibility Toolkit">ATK</abbr>/<abbr title="Assistive Technology - Service Provider Interface">AT-SPI</abbr></th>
4378+
<td>
4379+
<span class="property">Role: <code>ROLE_FOOTER</code></span
4380+
><br />
4381+
</td>
4382+
</tr>
4383+
<tr>
4384+
<th>
4385+
<abbr title="macOS Accessibility Protocol">AX API</abbr><sup>[<a href="#ftn.note1">Note 1</a>]</sup>
4386+
</th>
4387+
<td>
4388+
<span class="property">AXRole: <code>AXGroup</code></span
4389+
><br />
4390+
<span class="property">AXSubrole: <code>AXSectionFooter</code></span
4391+
><br />
4392+
<span class="property">AXRoleDescription: <code>section footer</code></span>
4393+
</td>
4394+
</tr>
4395+
</tbody>
4396+
</table>
4397+
<h4 id="role-map-sectionheader"><code>sectionheader</code></h4>
4398+
<table aria-labelledby="role-map-sectionheader">
4399+
<tbody>
4400+
<tr>
4401+
<th>ARIA Specification</th>
4402+
<td>
4403+
<a class="role-reference" href="#sectionheader"><code>sectionheader</code></a>
4404+
</td>
4405+
</tr>
4406+
<tr>
4407+
<th>Computed Role</th>
4408+
<td>
4409+
<p><code>sectionheader</code></p>
4410+
</td>
4411+
</tr>
4412+
<tr>
4413+
<th>MSAA + IAccessible2</th>
4414+
<td>
4415+
<span class="property">Role: <code>ROLE_SYSTEM_GROUPING</code></span
4416+
><br />
4417+
<span class="property">Object Attribute: <code>xml-roles:sectionheader</code></span>
4418+
</td>
4419+
</tr>
4420+
<tr>
4421+
<th><abbr title="User Interface Automation">UIA</abbr></th>
4422+
<td>
4423+
<span class="property">Control Type: <code>Group</code></span
4424+
><br />
4425+
<span class="property">Localized Control Type: <code>section header</code></span>
4426+
</td>
4427+
</tr>
4428+
<tr>
4429+
<th><abbr title="Accessibility Toolkit">ATK</abbr>/<abbr title="Assistive Technology - Service Provider Interface">AT-SPI</abbr></th>
4430+
<td>
4431+
<span class="property">Role: <code>ROLE_HEADER</code></span>
4432+
</td>
4433+
</tr>
4434+
<tr>
4435+
<th>
4436+
<abbr title="macOS Accessibility Protocol">AX API</abbr><sup>[<a href="#ftn.note1">Note 1</a>]</sup>
4437+
</th>
4438+
<td>
4439+
<span class="property">AXRole: <code>AXGroup</code></span
4440+
><br />
4441+
<span class="property">AXSubrole: <code>AXSectionHeader</code></span
4442+
><br />
4443+
<span class="property">AXRoleDescription: <code>section header</code></span>
4444+
</td>
4445+
</tr>
4446+
</tbody>
4447+
</table>
43414448
<h4 id="role-map-separator"><code>separator</code> (non-focusable)</h4>
43424449
<table aria-labelledby="role-map-separator">
43434450
<tbody>
@@ -11077,6 +11184,7 @@ <h2>Change Log</h2>
1107711184
<h2>Substantive changes since the last <a href="https://www.w3.org/TR/2022/CR-core-aam-1.2-20221122/">Candidate Recommendation Snapshot</a></h2>
1107811185
<ul>
1107911186
<!-- EdNote: After each WD publish, move contents of this list into the next one below. -->
11187+
<li>14-Nov-2022: add new AX API mappings for colindextext/rowindextext</li>
1108011188
<li>4-Jan-2024: Fix: errant computed role for treegrid row</li>
1108111189
<li>31-Oct-2023: Update UIA aria-readonly mappings</li>
1108211190
<li>31-Oct-2023: Add aria-haspopup='grid' mappings</li>
@@ -11144,7 +11252,12 @@ <h3>Acknowledgments</h3>
1114411252
<ul id="gh-contributors">
1114511253
<!-- list of contributors will appear here, along with link to their GitHub profiles -->
1114611254
</ul>
11147-
<div data-include="../common/acknowledgements/aria-wg-active.html" data-include-replace="true"></div>
11255+
<section class="section" id="ack_group">
11256+
<h4>ARIA WG participants at the time of publication</h4>
11257+
<ul>
11258+
<!-- List of participants is injected here -->
11259+
</ul>
11260+
</section>
1114811261
<div data-include="../common/acknowledgements/funders.html" data-include-replace="true"></div>
1114911262
</section>
1115011263
</body>

0 commit comments

Comments
 (0)