Skip to content

Commit

Permalink
대화상자 예제 번역 및 W3C 동기화 (#161)
Browse files Browse the repository at this point in the history
* Generated by a9e597279d1cd9722ff884f71a8168433446041a

* adding  APG coverage report link

Added brief description of coverage report and its link

* updated heading level

Updated coverage report heading level from 3 to 2

* added the date of the record and report link

* fix typo

* Generated by b61b6c0900bea999781cf1107f9588c3fd155b3d

* 모달 대화상자 예제 번역

* Update Readme URL for most recent version

* Multiple example pages: Fix broken links (pull w3c#2169)

* effected -> affected (w3c#2174)

* Code guide: swap deprecated method of the Date object in the datepicker dialog example (w3c#2179)

* Generated by 8e31f06e2137ee80200fd3ca955f9ca38633a6ed

* update jemma's email address

* Infrastructure: Bump actions/setup-node from 2 to 3 (w3c#2223)

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2 to 3.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump actions/github-script from 5 to 6 (w3c#2221)

Bumps [actions/github-script](https://github.com/actions/github-script) from 5 to 6.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](actions/github-script@v5...v6)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: remove pinst (w3c#2167)

This is only required for husky for publicly published NPM packages that others consume.
Marked package as private to match

* Infrastructure: Bump eslint-plugin-ava from 13.1.0 to 13.2.0 (w3c#2214)

Bumps [eslint-plugin-ava](https://github.com/avajs/eslint-plugin-ava) from 13.1.0 to 13.2.0.
- [Release notes](https://github.com/avajs/eslint-plugin-ava/releases)
- [Commits](avajs/eslint-plugin-ava@v13.1.0...v13.2.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-ava
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump cspell from 5.13.0 to 5.18.0 (w3c#2215)

Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.13.0 to 5.18.0.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](streetsidesoftware/cspell@v5.13.0...v5.18.0)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: cleanup husky script (w3c#2166)

The husky script is supposed be ignored by `.gitignore` and added by the
install script.

* Infrastructure: Bump node-html-parser from 5.1.0 to 5.2.0 (w3c#2184)

Bumps [node-html-parser](https://github.com/taoqf/node-fast-html-parser) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/taoqf/node-fast-html-parser/releases)
- [Changelog](https://github.com/taoqf/node-html-parser/blob/main/CHANGELOG.md)
- [Commits](taoqf/node-html-parser@v5.1.0...v5.2.0)

---
updated-dependencies:
- dependency-name: node-html-parser
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(w3c#2238): adds catch for when control number is 0 (w3c#2242)

The example wraps. So in certain scenarios the control number will be 0. For example, 25th of February “minus” 31 days results in the code example to land on day 28. Due to the module on line 358 that would make the control number 0. This catches that and sets it to dayMax (same logic as in the code example itself).

* Infrastructure: Bump @babel/core from 7.16.0 to 7.17.5 (w3c#2236)

Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.16.0 to 7.17.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.17.5/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump trim-newlines from 3.0.0 to 3.0.1 (w3c#2224)

Bumps [trim-newlines](https://github.com/sindresorhus/trim-newlines) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/sindresorhus/trim-newlines/releases)
- [Commits](https://github.com/sindresorhus/trim-newlines/commits)

---
updated-dependencies:
- dependency-name: trim-newlines
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump htmlhint from 0.16.1 to 1.1.2 (w3c#2209)

Bumps [htmlhint](https://github.com/htmlhint/HTMLHint) from 0.16.1 to 1.1.2.
- [Release notes](https://github.com/htmlhint/HTMLHint/releases)
- [Changelog](https://github.com/htmlhint/HTMLHint/blob/master/CHANGELOG.md)
- [Commits](htmlhint/HTMLHint@v0.16.1...v1.1.2)

---
updated-dependencies:
- dependency-name: htmlhint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump selenium-webdriver from 4.1.0 to 4.1.1 (w3c#2208)

Bumps [selenium-webdriver](https://github.com/SeleniumHQ/selenium) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Commits](https://github.com/SeleniumHQ/selenium/commits)

---
updated-dependencies:
- dependency-name: selenium-webdriver
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump nanoid from 3.1.30 to 3.3.1 (w3c#2227)

Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.30 to 3.3.1.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](ai/nanoid@3.1.30...3.3.1)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump trim-off-newlines from 1.0.1 to 1.0.3 (w3c#2226)

Bumps [trim-off-newlines](https://github.com/stevemao/trim-off-newlines) from 1.0.1 to 1.0.3.
- [Release notes](https://github.com/stevemao/trim-off-newlines/releases)
- [Commits](stevemao/trim-off-newlines@v1.0.1...v1.0.3)

---
updated-dependencies:
- dependency-name: trim-off-newlines
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump node-fetch from 2.6.6 to 2.6.7 (w3c#2225)

Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](node-fetch/node-fetch@v2.6.6...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump nth-check from 2.0.0 to 2.0.1 (w3c#2228)

Bumps [nth-check](https://github.com/fb55/nth-check) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/fb55/nth-check/releases)
- [Commits](fb55/nth-check@v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: nth-check
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump dotenv from 10.0.0 to 16.0.0 (w3c#2235)

Bumps [dotenv](https://github.com/motdotla/dotenv) from 10.0.0 to 16.0.0.
- [Release notes](https://github.com/motdotla/dotenv/releases)
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](motdotla/dotenv@v10.0.0...v16.0.0)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump eslint-plugin-jsdoc from 37.0.3 to 37.9.4 (w3c#2234)

Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 37.0.3 to 37.9.4.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Commits](gajus/eslint-plugin-jsdoc@v37.0.3...v37.9.4)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump @babel/eslint-parser from 7.16.3 to 7.17.0 (w3c#2233)

Bumps [@babel/eslint-parser](https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser) from 7.16.3 to 7.17.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.17.0/eslint/babel-eslint-parser)

---
updated-dependencies:
- dependency-name: "@babel/eslint-parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump eslint from 8.3.0 to 8.9.0 (w3c#2232)

Bumps [eslint](https://github.com/eslint/eslint) from 8.3.0 to 8.9.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.3.0...v8.9.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump prettier from 2.4.1 to 2.5.1 (w3c#2185)

Bumps [prettier](https://github.com/prettier/prettier) from 2.4.1 to 2.5.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@2.4.1...2.5.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump geckodriver from 2.0.4 to 3.0.1 (w3c#2183)

Bumps [geckodriver](https://github.com/vladikoff/node-geckodriver) from 2.0.4 to 3.0.1.
- [Release notes](https://github.com/vladikoff/node-geckodriver/releases)
- [Commits](webdriverio-community/node-geckodriver@v2.0.4...v3.0.1)

---
updated-dependencies:
- dependency-name: geckodriver
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump cspell from 5.18.0 to 5.18.5 (w3c#2231)

Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.18.0 to 5.18.5.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](streetsidesoftware/cspell@v5.18.0...v5.18.5)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump lint-staged from 12.1.2 to 12.3.4 (w3c#2229)

Bumps [lint-staged](https://github.com/okonet/lint-staged) from 12.1.2 to 12.3.4.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](lint-staged/lint-staged@v12.1.2...v12.3.4)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump ava from 3.15.0 to 4.0.1 (w3c#2211)

Bumps [ava](https://github.com/avajs/ava) from 3.15.0 to 4.0.1.
- [Release notes](https://github.com/avajs/ava/releases)
- [Commits](avajs/ava@v3.15.0...v4.0.1)

---
updated-dependencies:
- dependency-name: ava
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fixed the broken links

added correct directory structure

* Landmark Example Pages: Restore list structure in page navigation region (w3c#2118)

* landmarks: Avoid bootstrap-a11y navpills problem

* fix: change selectors to maintain aria-current styling

Co-authored-by: Zoë Bijl <[email protected]>

* 날자선택 콤보박스 예제 번역

* Infrastructure: Bump eslint-config-prettier from 8.3.0 to 8.4.0 (w3c#2249)

Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 8.3.0 to 8.4.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/eslint-config-prettier@v8.3.0...v8.4.0)

---
updated-dependencies:
- dependency-name: eslint-config-prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump eslint-plugin-jsdoc from 37.9.4 to 37.9.6 (w3c#2254)

Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 37.9.4 to 37.9.6.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Commits](gajus/eslint-plugin-jsdoc@v37.9.4...v37.9.6)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Infrastructure: Bump eslint from 8.9.0 to 8.10.0 (w3c#2251)

Bumps [eslint](https://github.com/eslint/eslint) from 8.9.0 to 8.10.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.9.0...v8.10.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Generated by 7e86d307fa310449f66fbb336bd44d7abbafafb3

* 대화상자 섹션 번역

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: JaEun Jemma Ku <[email protected]>
Co-authored-by: James Nurthen <[email protected]>
Co-authored-by: Alexander Flenniken <[email protected]>
Co-authored-by: Carolyn MacLeod <[email protected]>
Co-authored-by: Guilherme Siquinelli <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nick Schonning <[email protected]>
Co-authored-by: Zoë Bijl <[email protected]>
Co-authored-by: Wilco Fiers <[email protected]>
  • Loading branch information
11 people authored Mar 9, 2022
1 parent 085b6b6 commit 58d378c
Show file tree
Hide file tree
Showing 51 changed files with 2,614 additions and 4,736 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coverage-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
ref: refs/pull/${{ github.event.pull_request.number }}/head

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
cache: npm

Expand All @@ -33,7 +33,7 @@ jobs:
node test/util/report.js >> coverage.log || true
- name: Comment on PR
uses: actions/github-script@v5
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
cache: npm

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-css.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
cache: npm

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
cache: npm

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
# setup-node task is used without a particular version in order to load
# the ESLint problem matchers
- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
cache: npm

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
cache: npm

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
cache: npm

Expand Down
31 changes: 0 additions & 31 deletions .husky/_/husky.sh

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This repository maintains the WAI-ARIA Authoring Practices Guide.

* [Latest editor's draft built from main branch](http://w3c.github.io/aria-practices/)
* [Most recent version published on w3.org](https://www.w3.org/TR/wai-aria-practices-1.1/)
* [Most recent version published on w3.org](https://www.w3.org/TR/wai-aria-practices/)
* Developed by the [Authoring Practices Task Force](https://www.w3.org/WAI/ARIA/task-forces/practices/) of the [ARIA Working Group](http://www.w3.org/WAI/ARIA/).
* Staff contact: [Michael Cooper](http://www.w3.org/People/cooper/).

Expand Down
116 changes: 13 additions & 103 deletions common/script/mapping-tables.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
// check for require() and respec context
/* global require , mappingTables */

if (typeof require !== 'undefined') {
require(['core/pubsubhub'], function (respecEvents) {
mapTables(respecEvents);
});
} else {
if (document.readyState !== 'loading') {
mapTables(false);
} else {
document.addEventListener('DOMContentLoaded', function () {
mapTables(false);
});
}
}
/* global mappingTables */

function hideElement(element) {
element.style.display = 'none';
Expand All @@ -29,7 +14,7 @@ function queryAll(selector, context) {
}

function getElementIndex(el) {
var i = 0;
var i = 1;
while ((el = el.previousElementSibling)) {
i++;
}
Expand All @@ -44,6 +29,7 @@ function viewAsSingleTable(mappingTableInfo) {
queryAll('summary', mappingTableInfo.detailsContainer).forEach(function (
summary
) {
summary.dataset['id'] = summary.id;
summary.removeAttribute('id');
});
showElement(mappingTableInfo.tableContainer);
Expand All @@ -52,7 +38,8 @@ function viewAsSingleTable(mappingTableInfo) {
queryAll('tbody tr', mappingTableInfo.tableContainer).forEach(function (
tr
) {
tr.id = mappingTableInfo.ids[getElementIndex(tr)];
tr.id = tr.dataset['id'];
tr.removeAttribute('data-id');
});
}

Expand All @@ -62,21 +49,16 @@ function viewAsDetails(mappingTableInfo) {
queryAll('tbody tr', mappingTableInfo.tableContainer).forEach(function (
tr
) {
tr.dataset['id'] = tr.id;
tr.removeAttribute('id');
});
showElement(mappingTableInfo.detailsContainer);
// add relevant @id to summary
queryAll('summary', mappingTableInfo.detailsContainer).forEach(function (
summary
) {
const details = mappingTableInfo.detailsContainer.querySelector(
'details'
);
summary.id =
mappingTableInfo.ids[
// TODO: check that this works
getElementIndex(details) - getElementIndex(summary.parentNode)
];
summary.id = summary.dataset['id'];
summary.removeAttribute('data-id');
});
}

Expand All @@ -103,22 +85,18 @@ function mappingTables() {

// create a container div to hold all the details element and insert after table
tableInfo.detailsContainer = document.createElement('div');
tableInfo.detailsContainer.className = 'details removeOnSave';
tableInfo.detailsContainer.className = 'details';
tableInfo.id = tableInfo.table.id + '-details';
tableInfo.tableContainer.insertAdjacentElement(
'afterend',
tableInfo.detailsContainer
);

// array to store @id attributes for rows and summaries.
tableInfo.ids = [];

// add switch to view as single table or details/summary
var viewSwitch = document.createElement('button');
viewSwitch.className = 'switch-view removeOnSave';
viewSwitch.innerHTML = mappingTableLabels.viewByTable;
viewSwitch.addEventListener('click', function () {
// array to store summary/tr @ids
// if current view is details/summary
if (tableInfo.detailsContainer.style.display !== 'none') {
viewAsSingleTable(tableInfo);
Expand All @@ -144,13 +122,12 @@ function mappingTables() {
// remove first column header from array
colHeaders.shift();
// for each row in the table, create details/summary..

queryAll('tbody tr', tableInfo.table).forEach(function (row) {
var caption = row.querySelector('th').innerHTML;
var summary = caption.replace(/<a [^>]+>|<\/a>/g, '');
// get the tr's @id
var id = row.id;
// store the row's @id
tableInfo.ids.push(id);
var id = row.dataset.id;
// remove the tr's @id since same id will be used in the relevant summary element
row.removeAttribute('id');
// store the row's cells in array rowCells
Expand All @@ -175,7 +152,7 @@ function mappingTables() {

// create content for each <details> element; add row header's content to summary
var details = document.createElement('details');
details.className = 'map removeOnSave';
details.className = 'map';

var detailsHTML = '<summary id="' + id + '">' + summary;

Expand Down Expand Up @@ -276,6 +253,7 @@ function mappingTables() {

showHideColButton.addEventListener('click', function () {
var index = getElementIndex(showHideColButton);
console.log("index?",index);
var wasHidden = showHideColButton.className === 'hide-col';

queryAll(
Expand Down Expand Up @@ -340,71 +318,3 @@ function mappingTables() {
}
});
}

function mapTables(respecEvents) {
var mappingTableInfos = [];

function viewAsSingleTable(mappingTableInfo) {
hideElement(mappingTableInfo.detailsContainer);
// add <summary> @id to ids array and remove @id from summary
queryAll('summary', mappingTableInfo.detailsContainer).forEach(function (
summary
) {
summary.removeAttribute('id');
});
showElement(mappingTableInfo.tableContainer);

// add relevant @id to tr
queryAll('tbody tr', mappingTableInfo.tableContainer).forEach(function (
tr
) {
tr.id = mappingTableInfo.ids[getElementIndex(tr)];
});
}

function viewAsDetails(mappingTableInfo) {
hideElement(mappingTableInfo.tableContainer);
// add tr @id to ids array and remove @id from tr
queryAll('tbody tr', mappingTableInfo.tableContainer).forEach(function (
tr
) {
tr.removeAttribute('id');
});
showElement(mappingTableInfo.detailsContainer);
// add relevant @id to summary
queryAll('summary', mappingTableInfo.detailsContainer).forEach(function (
summary
) {
const details = mappingTableInfo.detailsContainer.querySelector(
'details'
);
summary.id =
mappingTableInfo.ids[
// TODO: check that this works
getElementIndex(details) - getElementIndex(summary.parentNode)
];
});
}

if (respecEvents) {
// Fix the scroll-to-fragID:
// - if running with ReSpec, do not invoke the mapping tables script until
// ReSpec executes its own scroll-to-fragID.
// - if running on a published document (no ReSpec), invoke the mapping tables
// script on document ready.
respecEvents.sub('start', function (details) {
if (details === 'core/location-hash') {
mappingTables();
}
});
// Subscribe to ReSpec "save" message to set the mapping tables to
// view-as-single-table state.
respecEvents.sub('save', function (details) {
mappingTableInfos.forEach(function (item) {
viewAsSingleTable(item);
});
});
} else {
mappingTables();
}
}
9 changes: 8 additions & 1 deletion common/script/roleInfo.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var roleInfo = {
/* This file is generated - do not modify */var roleInfo = {
"alert": {
"name": "alert",
"fragID": "alert",
Expand Down Expand Up @@ -8587,6 +8587,13 @@ var roleInfo = {
"required": false,
"disallowed": false,
"deprecated": false
},
{
"is": "property",
"name": "aria-level",
"required": false,
"disallowed": false,
"deprecated": false
}
]
},
Expand Down
4 changes: 2 additions & 2 deletions examples/button/button.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ <h2 id="rps_label">Role, Property, State, Tabindex 어트리뷰트</h2>
<td>
<ul>
<li>버튼을 토글 버튼으로 식별시킵니다.</li>
<li>토글 버튼이 눌리지 않은 것으로 식별시킵니다.</li>
<li>토글 버튼이 눌리지 않았음을 나타냅니다.</li>
</ul>
</td>
</tr>
Expand All @@ -175,7 +175,7 @@ <h2 id="rps_label">Role, Property, State, Tabindex 어트리뷰트</h2>
<td>
<ul>
<li>버튼을 토글 버튼으로 식별시킵니다.</li>
<li>토글 버튼이 눌린 것으로 식별시킵니다.</li>
<li>토글 버튼이 눌렸음을 나타냅니다.</li>
</ul>
</td>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions examples/button/button_idl.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ <h2 id="rps_label">Role, Property, State, Tabindex 어트리뷰트</h2>
<ul>
<li>자바스크립트로 <code>button.ariaPressed = 'false';</code>를 설정하세요.</li>
<li>버튼을 토글 버튼으로 식별시킵니다.</li>
<li>토글 버튼이 눌리지 않은 것으로 식별시킵니다.</li>
<li>토글 버튼이 눌리지 않았음을 나타냅니다.</li>
</ul>
</td>
</tr>
Expand All @@ -179,7 +179,7 @@ <h2 id="rps_label">Role, Property, State, Tabindex 어트리뷰트</h2>
<ul>
<li>자바스크립트로 <code>button.ariaPressed = 'true';</code>를 설정하세요.</li>
<li>버튼을 토글 버튼으로 식별시킵니다.</li>
<li>토글 버튼이 눌린 것으로 식별시킵니다.</li>
<li>토글 버튼이 눌렸음을 나타냅니다.</li>
</ul>
</td>
</tr>
Expand Down
4 changes: 3 additions & 1 deletion examples/carousel/carousel-1-prev-next.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
<main>
<h1>슬라이드 컨트롤 버튼을 가진 자동 순환 이미지 캐러셀 예제</h1>
<p>
다음 예제는 페이지가 로드 될 때 자동으로 순환을 시작하는 캐러셀에 대한 접근성에 필수적인 패턴의 기능을 보여주는 <a href="../../#carousel">캐러셀 설계 패턴</a>의 구현입니다.
다음 예제는 페이지가 로드 될 때
자동으로 순환을 시작하는 캐러셀에 대한 접근성에 필수적인 패턴의 기능을 보여주는
<a href="../../#carousel">캐러셀 설계 패턴</a>의 구현입니다.
예를 들어, 사용자가 캐러셀 안으로 초점을 이동시키거나 캐러셀 콘텐츠 위로 마우스를 가져갈 때 순환이 정지되고, 사용자가 수동으로 이전 그리고 다음 슬라이드 버튼으로 표시할 슬라이드를 제어할 수 있습니다.
예제 다음에 나오는 접근성 특성 섹션은 이 기능들에 대해 자세히 설명합니다.
</p>
Expand Down
Loading

0 comments on commit 58d378c

Please sign in to comment.