rspec/rules/S1102/html/exceptions.adoc
Roberto Orlandi 9da3252f27
Modify rule S1102: add exception for simple tables (#739)
* Modify rule S1102: add exception for simple tables

* Modify rule S1102: address review comment
2022-01-24 11:25:53 +01:00

33 lines
641 B
Plaintext

== Exceptions
This rule is not applied in case of simple tables.
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.
Simple table example:
----
<table border="1">
<caption>Simple Table 1</caption>
<tr>
<th>Name</th>
<th>Surname</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
</table>
<table border="1">
<caption>Simple Table 2</caption>
<tr>
<th>Name</th>
<td>John</td>
</tr>
<tr>
<th>Surname</th>
<td>Doe</td>
</tr>
</table>
----