Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DPubロールを認識しない #1490

Open
momdo opened this issue Feb 16, 2024 · 0 comments
Open

DPubロールを認識しない #1490

momdo opened this issue Feb 16, 2024 · 0 comments

Comments

@momdo
Copy link

momdo commented Feb 16, 2024

  • Markuplint version: 4.1.0
  • Parser lang: HTML
  • Node.js version: 20.11.0
  • OS: Windows

Describe

wai-ariaルールは

WAI-ARIAおよびARIA in HTMLの仕様のとおりrole属性またはaria-*属性が設定されていない場合に警告します。

とありますが、実際にはARIA in HTMLで許容される、
(WAI-ARIA拡張仕様である、Digital Publishing WAI-ARIA Moduleで定義される)DPubロールを記載するとエラーが返ってきます。

# 実用度は極めて低いと思いますが、仕様には違いないと思いますので…。

関連仕様:Digital Publishing WAI-ARIA Module 1.0
https://www.w3.org/TR/dpub-aria-1.0/

Code Example

<section role="doc-abstract">
<p>text
</section>

Steps To Reproduce

  1. Code Exampleに示すような許容される要素とDpubロールの組み合わせを記載します。

The current behavior

以下のエラーが出力されます。

WAI-ARIAの仕様において、ロール「doc-abstract」は存在しません. This "doc-abstract" role does not exist in WAI-ARIA.

The expected behavior

エラーを出力しません。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants