Skip to content

Commit f583c70

Browse files
authored
Merge pull request #3377 from dequelabs/release-4.4.1
chore(release): 4.4.1
2 parents 2c6f028 + 296acdf commit f583c70

File tree

10 files changed

+157
-121
lines changed

10 files changed

+157
-121
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [4.4.1](https://github.com/dequelabs/axe-core/compare/v4.4.0...v4.4.1) (2022-02-03)
6+
7+
### Bug Fixes
8+
9+
- **DPUB:** deprecate endnote, rather than endnotes (plural) ([#3373](https://github.com/dequelabs/axe-core/issues/3373)) ([1ba9917](https://github.com/dequelabs/axe-core/pull/3377/commits/1ba9917801df9194092769c7c58f048884bc25fd))
10+
- **d.ts:** correct getFrameContexts return type ([#3370](https://github.com/dequelabs/axe-core/issues/3370)) ([a1b9611](https://github.com/dequelabs/axe-core/commit/a1b96113add29756a421e3934cb089d3734dec16))
11+
512
## [4.4.0](https://github.com/dequelabs/axe-core/compare/v4.3.5...v4.4.0) (2022-01-26)
613

714
### Features

axe.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ declare namespace axe {
5454
exclude?: Node | BaseSelector | Array<Node | BaseSelector | BaseSelector[]>;
5555
};
5656

57+
type SerialContextObject = {
58+
include?: BaseSelector | Array<BaseSelector | BaseSelector[]>;
59+
exclude?: BaseSelector | Array<BaseSelector | BaseSelector[]>;
60+
};
61+
5762
type RunCallback = (error: Error, results: AxeResults) => void;
5863

5964
type ElementContext = Node | NodeList | string | ContextObject;
@@ -267,7 +272,7 @@ declare namespace axe {
267272
type PartialResults = Array<PartialResult | null>;
268273
interface FrameContext {
269274
frameSelector: CrossTreeSelector;
270-
frameContext: ContextObject;
275+
frameContext: SerialContextObject;
271276
}
272277
interface Utils {
273278
getFrameContexts: (

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "axe-core",
3-
"version": "4.4.0",
3+
"version": "4.4.1",
44
"contributors": [
55
{
66
"name": "David Sturley",

doc/rule-descriptions.md

Lines changed: 97 additions & 97 deletions
Large diffs are not rendered by default.

lib/standards/dpub-roles.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ const dpubRoles = {
9191
'aria-posinset',
9292
'aria-setsize'
9393
],
94-
superclassRole: ['listitem']
94+
superclassRole: ['listitem'],
95+
deprecated: true
9596
},
9697
'doc-endnotes': {
9798
type: 'landmark',
9899
allowedAttrs: ['aria-expanded'],
99-
superclassRole: ['landmark'],
100-
deprecated: true
100+
superclassRole: ['landmark']
101101
},
102102
'doc-epigraph': {
103103
type: 'section',

locales/ko.json

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,14 @@
113113
"description": "각 페이지에 사용자가 내비게이션을 건너뛰고 콘텐츠로 바로 이동할 수 있는 최소 하나의 메커니즘이 있는지 확인하세요.",
114114
"help": "페이지에는 반드시 반복 되는 블럭을 건너 뛸 수 있는 수단이 있어야 합니다."
115115
},
116-
"color-contrast": {
117-
"description": "전경색과 배경색 사이의 대비가 WCAG 2 AA 명암비 기준치를 충족하는지 확인하세요.",
118-
"help": "엘리먼트는 반드시 충분한 명도 대비를 가져야 합니다."
119-
},
120116
"color-contrast-enhanced": {
121117
"description": "전경색과 배경색 사이의 대비가 WCAG 2 AAA 명암비 기준치를 충족하는지 확인하세요.",
122118
"help": "엘리먼트는 반드시 충분한 명도 대비를 가져야 합니다."
123119
},
120+
"color-contrast": {
121+
"description": "전경색과 배경색 사이의 대비가 WCAG 2 AA 명암비 기준치를 충족하는지 확인하세요.",
122+
"help": "엘리먼트는 반드시 충분한 명도 대비를 가져야 합니다."
123+
},
124124
"css-orientation-lock": {
125125
"description": "콘텐츠가 특정 디스플레이 방향으로 고정되지 않고, 콘텐츠가 모든 디스플레이 방향에서 사용 가능한지 확인하세요.",
126126
"help": "CSS 미디어쿼리가 디스플레이 방향을 고정하기 위해 사용되지 않아야 합니다."
@@ -302,8 +302,8 @@
302302
"help": "확대/축소 및 크기 조정은 비활성화되지 않아야 합니다."
303303
},
304304
"nested-interactive": {
305-
"description": "중첩된 인터랙티브 컨트롤은 스크린리더에 의해 낭독되지 않습니다.",
306-
"help": "인터랙티브 컨트롤이 중첩되지 않게 하세요."
305+
"description": "중첩된 대화형 컨트롤은 스크린리더에 의해 낭독되지 않습니다.",
306+
"help": "대화형 컨트롤이 중첩되지 않게 하세요."
307307
},
308308
"no-autoplay-audio": {
309309
"description": "<video>나 <audio> 엘리먼트가 중지 시키거나 오디오를 음소거하는 제어 메커니즘 없이 3초를 초과하여 오디오를 자동 재생하지 않게 하세요.",
@@ -403,7 +403,8 @@
403403
"fail": {
404404
"singular": "ARIA 어트리뷰트가 허용되지 않았습니다: ${data.values}",
405405
"plural": "ARIA 어트리뷰트들이 허용되지 않았습니다: ${data.values}"
406-
}
406+
},
407+
"incomplete": "이 엘리먼트에 ARIA 어트리뷰트가 무시되어도 문제가 없는지 확안하세요: ${data.values}"
407408
},
408409
"aria-allowed-role": {
409410
"pass": "ARIA 역할(role)이 주어진 엘리먼트에 허용되었습니다.",
@@ -420,7 +421,8 @@
420421
"pass": "aria-errormessage가 존재하고, 지원된 aria-errormessage 기법을 사용하는 스크린리더에 노출되는 엘리먼트를 참조합니다.",
421422
"fail": {
422423
"singular": "aria-errormessage 값 `${data.values}`은(는) 반드시 메세지를 낭독하기 위한 기법을 (예를 들어, aria-live, aria-describedby, role=alert 등) 사용해야 합니다.",
423-
"plural": "aria-errormessage 값들 `${data.values}`은(는) 반드시 메세지를 낭독하기 위한 기법을 (예를 들어, aria-live, aria-describedby, role=alert 등) 사용해야 합니다."
424+
"plural": "aria-errormessage 값들 `${data.values}`은(는) 반드시 메세지를 낭독하기 위한 기법을 (예를 들어, aria-live, aria-describedby, role=alert 등) 사용해야 합니다.",
425+
"hidden": "aria-errormessage 값 `${data.values}`은(는) 숨겨진 엘리먼트를 참조할 수 없습니다."
424426
},
425427
"incomplete": {
426428
"singular": "aria-errormessage 값 `${data.values}`이(가) 기존 엘리먼트를 참조하는지 확인하세요.",
@@ -438,8 +440,18 @@
438440
},
439441
"aria-prohibited-attr": {
440442
"pass": "ARIA 어트리뷰트가 혀용되었습니다.",
441-
"fail": "ARIA 어트리뷰트가 사용될 수 없습니다, 역할(role) 어트리뷰트를 추가하거나 다른 엘리먼트를 사용하세요: ${data.values}",
442-
"incomplete": "ARIA 어트리뷰트가 엘리먼트에 잘 지원되지 않으며 텍스트 콘텐츠가 대신 사용될 것입니다: ${data.values}"
443+
"fail": {
444+
"hasRolePlural": "${data.prohibited} 어트리뷰트는 \"${data.role}\" 역할(role)과 함께 사용될 수 없습니다.",
445+
"hasRoleSingular": "${data.prohibited} 어트리뷰트는 \"${data.role}\" 역할(role)과 함께 사용될 수 없습니다.",
446+
"noRolePlural": "${data.prohibited} 어트리뷰트는 유효하지 않은 역할(role)을 가진 ${data.nodeName}에 사용될 수 없습니다.",
447+
"noRoleSingular": "${data.prohibited} 어트리뷰트는 유효하지 않은 역할(role)을 가진 ${data.nodeName}에 사용될 수 없습니다."
448+
},
449+
"incomplete": {
450+
"hasRoleSingular": "${data.prohibited} 어트리뷰트는 \"${data.role}\" 역할(role)에서 제대로 지원되지 않습니다.",
451+
"hasRolePlural": "${data.prohibited} 어트리뷰트는 \"${data.role}\" 역할(role)에서 제대로 지원되지 않습니다.",
452+
"noRoleSingular": "${data.prohibited} 어트리뷰트는 유효한 역할(role) 어트리뷰트가 없는 ${data.nodeName}에서는 제대로 지원되지 않습니다.",
453+
"noRolePlural": "${data.prohibited} 어트리뷰트는 유효한 역할(role) 어트리뷰트가 없는 ${data.nodeName}에서는 제대로 지원되지 않습니다."
454+
}
443455
},
444456
"aria-required-attr": {
445457
"pass": "모든 필수 ARIA 어트리뷰트가 존재합니다.",
@@ -494,6 +506,10 @@
494506
"plural": "유효하지 않은 ARIA 어트리뷰트 이름들: ${data.values}"
495507
}
496508
},
509+
"deprecatedrole": {
510+
"pass": "ARIA 역할(role)은 용도 폐기(deprecated) 되지 않았습니다.",
511+
"fail": "사용된 역할(role)은 용도 폐기(deprecated) 되었습니다: ${data.values}"
512+
},
497513
"fallbackrole": {
498514
"pass": "하나의 역할(role) 값만 사용되었습니다.",
499515
"fail": "폴백 역할(role)들은 구형 브라우저들에서 지원되지 않으므로, 단 하나의 값만 사용해야 합니다.",
@@ -533,7 +549,7 @@
533549
"pass": "엘리먼트가 초점 순서(focus order)의 엘리먼트에 유효한 의미론을 가집니다.",
534550
"fail": "엘리먼트가 초점 순서(focus order)의 엘리먼트에 유효하지 않은 의미론을 가집니다."
535551
},
536-
"color-contrast": {
552+
"color-contrast-enhanced": {
537553
"pass": "엘리먼트가 ${data.contrastRatio}의 충분한 명도 대비를 가집니다.",
538554
"fail": {
539555
"default": "엘리먼트가 ${data.contrastRatio} (전경색: ${data.fgColor}, 배경색: ${data.bgColor}, 글꼴 크기: ${data.fontSize}, 글꼴 두께: ${data.fontWeight})의 불충분한 명도 대비를 가집니다. 기대 명암비: ${data.expectedContrastRatio}",
@@ -556,7 +572,7 @@
556572
"pseudoContent": "가상 엘리먼트로 인해 엘리먼트의 배경색이 확인될 수 없습니다."
557573
}
558574
},
559-
"color-contrast-enhanced": {
575+
"color-contrast": {
560576
"pass": "엘리먼트가 ${data.contrastRatio}의 충분한 명도 대비를 가집니다.",
561577
"fail": {
562578
"default": "엘리먼트가 ${data.contrastRatio} (전경색: ${data.fgColor}, 배경색: ${data.bgColor}, 글꼴 크기: ${data.fontSize}, 글꼴 두께: ${data.fontWeight})의 불충분한 명도 대비를 가집니다. 기대 명암비: ${data.expectedContrastRatio}",
@@ -639,7 +655,10 @@
639655
},
640656
"no-focusable-content": {
641657
"pass": "엘리먼트에 초점을 얻을 수 있는(focusable) 후손 항목이 없습니다.",
642-
"fail": "엘리먼트에 초점을 얻을 수 있는(focusable) 후손 항목이 있습니다.",
658+
"fail": {
659+
"default": "엘리먼트에 초점을 얻을 수 있는(focusable) 후손 항목이 있습니다.",
660+
"notHidden": "대화형 컨트롤 내부의 엘리먼트에 음수 tabindex를 사용하는 것은 ('aria-hidden=true'인 경우에도) 보조기술에서 엘리먼트가 초점을 얻는 것을 막지 않습니다."
661+
},
643662
"incomplete": "엘리먼트에 후손 항목이 있는지 확인할 수 없습니다."
644663
},
645664
"page-has-heading-one": {
@@ -804,7 +823,8 @@
804823
},
805824
"p-as-heading": {
806825
"pass": "<p> 엘리먼트가 제목으로 스타일되지 않았습니다.",
807-
"fail": "스타일링된 p 엘리먼트는 제목 엘리먼트 대신 사용되지 않아야 합니다."
826+
"fail": "스타일링된 p 엘리먼트는 제목 엘리먼트 대신 사용되지 않아야 합니다.",
827+
"incomplete": "<p> 엘리먼트가 제목으로 스타일되었는지 확인할 수 없습니다."
808828
},
809829
"region": {
810830
"pass": "모든 페이지 콘텐츠가 랜드마크에 포함되어 있습니다.",

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "axe-core",
33
"description": "Accessibility engine for automated Web UI testing",
4-
"version": "4.4.0",
4+
"version": "4.4.1",
55
"license": "MPL-2.0",
66
"engines": {
77
"node": ">=4"
@@ -59,7 +59,7 @@
5959
],
6060
"standard-version": {
6161
"scripts": {
62-
"postbump": "npm ci && npm run sri-update"
62+
"postbump": "npm ci && npm run sri-update && git add doc/rule-descriptions.md"
6363
},
6464
"skip": {
6565
"tag": true

sri-history.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,5 +298,9 @@
298298
"4.4.0": {
299299
"axe.js": "sha256-gXqUZOaNO3O6o8WlFgwgeyPBiVS+CKGohTW7gC1vreE=",
300300
"axe.min.js": "sha256-0+zQT47ZDlw7BjxlDClFCx2/NA0XcRmpXSn33IL/ua4="
301+
},
302+
"4.4.1": {
303+
"axe.js": "sha256-3JaN+ADNfrGA15wszgRmfF5HiotL+1zjZznNmgzCYj4=",
304+
"axe.min.js": "sha256-hGavf/+WwgIndgE1q4LjwtSlyHJjEdkQq1iilUUafC8="
301305
}
302306
}

test/integration/rules/aria-roles/aria-roles.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<div role="doc-credit" id="pass82">ok</div>
8282
<div role="doc-credits" id="pass83">ok</div>
8383
<div role="doc-dedication" id="pass84">ok</div>
84-
<div role="doc-endnote" id="pass85">ok</div>
84+
<div role="doc-endnotes" id="pass85">ok</div>
8585
<div role="doc-epigraph" id="pass87">ok</div>
8686
<div role="doc-epilogue" id="pass88">ok</div>
8787
<div role="doc-errata" id="pass89">ok</div>
@@ -134,7 +134,7 @@
134134
<div role="button alert" id="fail14">fail</div>
135135
<!-- deprecated roles-->
136136
<div role="doc-biblioentry" id="fail15">fail</div>
137-
<div role="doc-endnotes" id="fail16">fail</div>
137+
<div role="doc-endnote" id="fail16">fail</div>
138138
</div>
139139

140140
<!-- inapplicable -->

0 commit comments

Comments
 (0)