-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
<ol>が子を持たない場合に、誤ったエラーが出力される #1122
Comments
ご指摘ありがとうございます! これ警告メッセージが悪かったですね。 ❌ ロール「listitem」が必要です. Or, aria-busy="true"が必要です という意図でした。 この警告は次の仕様により判定しています。 https://www.w3.org/TR/wai-aria-1.2/#mustContain
"least one element"なので、0個は許容しないという解釈です(もちろんHTML LSではOKなのは理解した上で)。 そして、
とあるので、「0個 = 生成待ち」なら「aria-busy」付けてね、という警告にしています。 ご意見ください…! |
コメントありがとうございます。 いただいたリンクのセクションの最後のNOTEには、
とあります。これは、たとえば |
Oops! それは見逃してた…! 1.3ではこのへん、大幅に変わっててaria-busyも特定のロールにしか言及されてないっぽいので、全体的に1.2のこれも含めてもうちょっと仕様見直してみます。 よいきっかけになりました。ありがとうございます! |
このIssue取り掛かろうと思っているので、再度仕様を読んでいるのですが
「暗黙的なARIAセマンティックをもつ要素」がこの要件を満たす、ということは逆に つまり、 |
Fix the warning message and translation on `wai-aria` rule
3.12.10
20.5.1
Describe the bug
<li>
要素が0個の場合の<ol>
(または<ul>
)要素で下記のメッセージが出力されますしかし、ARIA in HTMLによれば
<ol>
要素にはlistitem
は許可されていません。https://www.w3.org/TR/html-aria/#el-ol
また、HTML仕様によれば、これはContent modelを満たしています。
https://html.spec.whatwg.org/multipage/grouping-content.html#the-ol-element
Code Example
Steps To Reproduce
<ol>
(または<ul>
)要素を記述しますThe current behavior
ロール「listitem」が必要です. Or, aria-busy="true"が必要です
と出力されます。
The expected behavior
何も出力されません。
The text was updated successfully, but these errors were encountered: