Skip to content

Commit

Permalink
Update rules metadata (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto-orlandi-sonarsource authored Jan 24, 2022
1 parent 2ee3957 commit 72d2ff7
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"TableWithoutCaptionCheck",
"UnsupportedTagsInHtml5Check"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,35 @@ <h2>Compliant Solution</h2>
&lt;/tr&gt;
&lt;/table&gt;
</pre>
<h2>Exceptions</h2>
<p>This rule is not applied in case of simple tables.</p>
<p>Tables are considered as such when the headers are either all in the first row, or all in the first column. The two conditions must not apply
together.</p>
<p>Simple table example:</p>
<pre>
&lt;table border="1"&gt;
&lt;caption&gt;Simple Table 1&lt;/caption&gt;
&lt;tr&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Surname&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;John&lt;/td&gt;
&lt;td&gt;Doe&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;table border="1"&gt;
&lt;caption&gt;Simple Table 2&lt;/caption&gt;
&lt;tr&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;td&gt;John&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th&gt;Surname&lt;/th&gt;
&lt;td&gt;Doe&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</pre>
<h2>See</h2>
<ul>
<li> <a href="https://www.w3.org/WAI/WCAG21/quickref/?versions=2.0#qr-content-structure-separation-programmatic">WCAG2, 1.3.1</a>&nbsp;-&nbsp;Info
Expand Down
2 changes: 1 addition & 1 deletion sonarpedia.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"languages": [
"HTML"
],
"latest-update": "2021-11-30T08:21:05.501292Z",
"latest-update": "2022-01-24T10:45:48.874035700Z",
"options": {
"no-language-in-filenames": true,
"preserve-filenames": true
Expand Down

0 comments on commit 72d2ff7

Please sign in to comment.