File tree Expand file tree Collapse file tree 3 files changed +18
-17
lines changed Expand file tree Collapse file tree 3 files changed +18
-17
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# dom-accessibility-api changelog
2
2
3
+ ## 0.5.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [ #811 ] ( https://github.com/eps1lon/dom-accessibility-api/pull/811 ) [ ` 5b0f48e ` ] ( https://github.com/eps1lon/dom-accessibility-api/commit/5b0f48e0668f77458396723751db498ba74d5686 ) Thanks [ @eps1lon ] ( https://github.com/eps1lon ) ! - Prefer button subtree over ` title ` attribute.
8
+
9
+ ``` diff
10
+ const name = computeAccessibleName(<button title="from-title">from-content</button>);
11
+ -'from-title' === name
12
+ +'from-content' === name
13
+ ```
14
+
15
+ ` <button title="from-title">from-content</button> ` would previously compute the accessible name "from-title".
16
+ This is correct in ACCNAME 1.2 but is changed in the latest editors draft.
17
+ The latest editors draft specifically refers to HTML-AAM which says that the subtree should take precedent over the ` title ` attribute.
18
+ ` computeAccessibleName ` now calculates "from-content" as the accessible name.
19
+
3
20
## 0.5.12
4
21
5
22
### Patch Changes
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " dom-accessibility-api" ,
3
3
"description" : " Implements https://w3c.github.io/accname/" ,
4
- "version" : " 0.5.12 " ,
4
+ "version" : " 0.5.13 " ,
5
5
"main" : " dist/index.js" ,
6
6
"module" : " dist/index.mjs" ,
7
7
"type" : " commonjs" ,
You can’t perform that action at this time.
0 commit comments