A
A11yance/aria-query
Programmatic access to the ARIA specification
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →
- 来源明细
- 收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
- 评分构成
- 综合分 1,003 · 10 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
# ARIA Query
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
Programmatic access to the WAI-ARIA 1.2 Roles Model.
This package tracks the W3C Recommendation (last update: 6 June 2023).
CDN URL:
## Building the src/etc files
The files under src/etc are generated by the breakUpAriaJSON script.
To change them, edit the file scripts/roles.json then run:
bash
node ./scripts/breakUpAriaJSON.js
git add scripts/roles.json src/etc
It should work with Node version 6.11.2 or later.
## Utilities
### Interface
These methods are available on each export from the module. The typing here in the documentation is pseudo-typed. Each export will have its own specific types for each method signature.
javascript
entries: () => Array ,
get: (key: $Key) => ?$Value,
has: (key: $Key) => boolean,
keys: () => Array ,
values: () => Array ,
|};
### Roles
javascript
import { roles } from 'aria-query';
A map of role names to the role definition. For example:
javascript
let alertRole = roles.get('alert');
Value of alertRole
"requiredProps": {},
"props": {
"aria-atomic": "true",
"aria-busy": null,
"aria-controls": null,
"aria-current": null,
"aria-describedby": null,
"aria-details": null,
"aria-disabled": null,
"aria-dropeffect": null,
"aria-errormessage": null,
"aria-expanded": null,
"aria-flowto": null,
"aria-grabbed": null,
"aria-haspopup": null,
"aria-hidden": null,
"aria-invalid": null,
"aria-keyshortcuts": null,
"aria-label": null,
"aria-labelledby": null,
"aria-live": "assertive",
"aria-owns": null,
"aria-relevant": null,
"aria-roledescription": null
},
"abstract": false,
"childrenPresentational": false,
"baseConcepts": [],
"relatedConcepts": [ {
"module": "XForms",
"concept": {
"name": "alert"
}],
"superClass": [["roletype", "structure", "section"]]
### Elements to Roles
javascript
import { elementRoles } from 'aria-query';
HTML Elements with inherent roles are mapped to those roles. In the case of an element like , the element often requires a type attribute to map to an ARIA role.
javascript
[ '{"name": "article"}', [ 'article' ] ],
[ '{"name": "button"}', [ 'button' ] ],
[ '{"name": "td"}', [ 'cell', 'gridcell' ] ],
[ '{"name": "input", "attributes": [ {"name": "type", "value": "checkbox"}] }', [ 'checkbox' ] ],
[ '{"name": "th"}', [ 'columnheader' ] ],
[ '{"name": "select"}', [ 'combobox', 'listbox' ] ],
[ '{"name": "menuitem"}', [ 'command', 'menuitem' ] ],
[ '{"name": "dd"}', [ 'definition' ] ],
[ '{"name": "figure"}', [ 'figure' ] ],
[ '{"name": "form"}', [ 'form' ] ],
[ '{"name": "table"}', [ 'grid', 'table' ] ],
[ '{"name": "fieldset"}', [ 'group' ] ],
[ '{"name": "h1"}', [ 'heading' ] ],
[ '{"name": "h2"}', [ 'heading' ] ],
[ '{"name": "h3"}', [ 'heading' ] ],
[ '{"name": "h4"}', [ 'heading' ] ],
[ '{"name": "h5"}', [ 'heading' ] ],
[ '{"name": "h6"}', [ 'heading' ] ],
[ '{"name": "img"}', [ 'img' ] ],
[ '{"name": "a"}', [ 'link' ] ],
[ '{"name": "link"}', [ 'link' ] ],
[ '{"name": "ol"}', [ 'list' ] ],
[ '{"name": "ul"}', [ 'list' ] ],
[ '{"name": "li"}', [ 'listitem' ] ],
[ '{"name": "nav"}', [ 'navigation' ] ],
[ '{"name": "option"}', [ 'option' ] ],
[ '{"name": "input", "attributes": [ {"name": "type", "value": "radio"}] }', [ 'radio' ] ],
[ '{"name": "frame"}', [ 'region' ] ],
[ '{"name": "rel"}', [ 'roletype' ] ],
[ '{"name": "tr"}', [ 'row' ] ],
This package tracks the W3C Recommendation (last update: 6 June 2023).
CDN URL:
## Building the src/etc files
The files under src/etc are generated by the breakUpAriaJSON script.
To change them, edit the file scripts/roles.json then run:
bash
node ./scripts/breakUpAriaJSON.js
git add scripts/roles.json src/etc
It should work with Node version 6.11.2 or later.
## Utilities
### Interface
These methods are available on each export from the module. The typing here in the documentation is pseudo-typed. Each export will have its own specific types for each method signature.
javascript
entries: () => Array ,
get: (key: $Key) => ?$Value,
has: (key: $Key) => boolean,
keys: () => Array ,
values: () => Array ,
|};
### Roles
javascript
import { roles } from 'aria-query';
A map of role names to the role definition. For example:
javascript
let alertRole = roles.get('alert');
Value of alertRole
"requiredProps": {},
"props": {
"aria-atomic": "true",
"aria-busy": null,
"aria-controls": null,
"aria-current": null,
"aria-describedby": null,
"aria-details": null,
"aria-disabled": null,
"aria-dropeffect": null,
"aria-errormessage": null,
"aria-expanded": null,
"aria-flowto": null,
"aria-grabbed": null,
"aria-haspopup": null,
"aria-hidden": null,
"aria-invalid": null,
"aria-keyshortcuts": null,
"aria-label": null,
"aria-labelledby": null,
"aria-live": "assertive",
"aria-owns": null,
"aria-relevant": null,
"aria-roledescription": null
},
"abstract": false,
"childrenPresentational": false,
"baseConcepts": [],
"relatedConcepts": [ {
"module": "XForms",
"concept": {
"name": "alert"
}],
"superClass": [["roletype", "structure", "section"]]
### Elements to Roles
javascript
import { elementRoles } from 'aria-query';
HTML Elements with inherent roles are mapped to those roles. In the case of an element like , the element often requires a type attribute to map to an ARIA role.
javascript
[ '{"name": "article"}', [ 'article' ] ],
[ '{"name": "button"}', [ 'button' ] ],
[ '{"name": "td"}', [ 'cell', 'gridcell' ] ],
[ '{"name": "input", "attributes": [ {"name": "type", "value": "checkbox"}] }', [ 'checkbox' ] ],
[ '{"name": "th"}', [ 'columnheader' ] ],
[ '{"name": "select"}', [ 'combobox', 'listbox' ] ],
[ '{"name": "menuitem"}', [ 'command', 'menuitem' ] ],
[ '{"name": "dd"}', [ 'definition' ] ],
[ '{"name": "figure"}', [ 'figure' ] ],
[ '{"name": "form"}', [ 'form' ] ],
[ '{"name": "table"}', [ 'grid', 'table' ] ],
[ '{"name": "fieldset"}', [ 'group' ] ],
[ '{"name": "h1"}', [ 'heading' ] ],
[ '{"name": "h2"}', [ 'heading' ] ],
[ '{"name": "h3"}', [ 'heading' ] ],
[ '{"name": "h4"}', [ 'heading' ] ],
[ '{"name": "h5"}', [ 'heading' ] ],
[ '{"name": "h6"}', [ 'heading' ] ],
[ '{"name": "img"}', [ 'img' ] ],
[ '{"name": "a"}', [ 'link' ] ],
[ '{"name": "link"}', [ 'link' ] ],
[ '{"name": "ol"}', [ 'list' ] ],
[ '{"name": "ul"}', [ 'list' ] ],
[ '{"name": "li"}', [ 'listitem' ] ],
[ '{"name": "nav"}', [ 'navigation' ] ],
[ '{"name": "option"}', [ 'option' ] ],
[ '{"name": "input", "attributes": [ {"name": "type", "value": "radio"}] }', [ 'radio' ] ],
[ '{"name": "frame"}', [ 'region' ] ],
[ '{"name": "rel"}', [ 'roletype' ] ],
[ '{"name": "tr"}', [ 'row' ] ],
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/a11yance-aria-query/)
- 来源
- awesome · https://github.com/A11yance/aria-query
- 按领域浏览
- MCP 服务
- 收录来源
- 10 个独立来源
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。