![github-actions[bot]](/assets/img/avatar_default.png)
* Add javascript to rule S5256 * [JS-3] Add Rspec --------- Co-authored-by: zglicz <zglicz@users.noreply.github.com> Co-authored-by: Michal Zgliczynski <michal.zgliczynski@sonarsource.com>
33 lines
686 B
Plaintext
33 lines
686 B
Plaintext
=== Exceptions
|
|
|
|
No issue will be raised on `<table>` used for layout purpose, i.e. when it contains a `role` attribute set to `"presentation"` or `"none"`.
|
|
[source,html]
|
|
----
|
|
<table role="presentation">
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Age</td>
|
|
</tr>
|
|
<tr>
|
|
<td>John Doe</td>
|
|
<td>42</td>
|
|
</tr>
|
|
</table>
|
|
----
|
|
Note that https://www.w3schools.com/html/html_layout.asp[using <table> for layout purpose is a bad practice].
|
|
|
|
No issue will be raised on `<table>` containing an `aria-hidden` attribute set to `"true"`.
|
|
[source,html]
|
|
----
|
|
<table aria-hidden="true">
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Age</td>
|
|
</tr>
|
|
<tr>
|
|
<td>John Doe</td>
|
|
<td>42</td>
|
|
</tr>
|
|
</table>
|
|
----
|