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

[add] role属性を共通部分に指定するべきか? #80

Open
manabuyasuda opened this issue Aug 17, 2016 · 1 comment
Open

[add] role属性を共通部分に指定するべきか? #80

manabuyasuda opened this issue Aug 17, 2016 · 1 comment
Labels

Comments

@manabuyasuda
Copy link
Owner

<main>タグにrole="main"<footer>タグにrole="contentinfo"など、
HTML5に対応仕切れていないUAのためにrole属性を指定しておくべきか?

HTML5もWAI ARIAも、仕様書としては同じ意味を持つタグにrole属性をつけるべきではないということになっている。
HTML5のバリデーターに通すと、警告が出る。冗長であっても、クライアントの規模などを考えて、対応すべきであれば指定しておくことが必要とも考えられる。

対応していないUAを調べる必要がある。

@manabuyasuda
Copy link
Owner Author

デフォルトでは仕様書通りに指定しない。
指定しておくかどうかは案件次第だし、要件定義で決めておくべき。

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

No branches or pull requests

1 participant