Skip to content

Commit

Permalink
docs(errors): fix headings hierarchy for first error
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Mar 3, 2022
1 parent 5aebb12 commit ee4e117
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docs/advices/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ <h3 id="test">Test</h3>
</svg>
</a>
</p>
<p>® 2014 —&nbsp;2020 <strong>Gaël Poupard</strong></p>
<p>® 2014 —&nbsp;2022 <strong>Gaël Poupard</strong></p>
<p>This project is distributed under license <a href="https://opensource.org/licenses/MIT" title="The MIT licence">MIT</a> and <a href="https://creativecommons.org/licenses/by/3.0/fr/" hreflang="fr" title="Explications de la licence">CC BY 3.0 FR</a>. <a class="end" href="#top">Back to top</a></p>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion docs/api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1681,7 +1681,7 @@ <h5 id="interactive-elements-references">References</h5>
</svg>
</a>
</p>
<p>® 2014 —&nbsp;2020 <strong>Gaël Poupard</strong></p>
<p>® 2014 —&nbsp;2022 <strong>Gaël Poupard</strong></p>
<p>This project is distributed under license <a href="https://opensource.org/licenses/MIT" title="The MIT licence">MIT</a> and <a href="https://creativecommons.org/licenses/by/3.0/fr/" hreflang="fr" title="Explications de la licence">CC BY 3.0 FR</a>. <a class="end" href="#top">Back to top</a></p>
</div>
</footer>
Expand Down
10 changes: 5 additions & 5 deletions docs/errors/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -365,20 +365,20 @@ <h1>Errors</h1>

<article>
<h2 id="attribute-whitespace">Attribute should not contain whitespace</h2>
<h2 id="description">Description</h2>
<h3 id="description">Description</h3>
<p>Some HTML attributes should not contain any whitespace —namely <code>[id]</code>, <code>[lang]</code> and <code>map[name]</code>.</p>
<h2 id="reference">Reference</h2>
<h3 id="reference">Reference</h3>
<ul>
<li><a href="https://html.spec.whatwg.org/#the-id-attribute">https://html.spec.whatwg.org/#the-id-attribute</a></li>
<li><a href="https://html.spec.whatwg.org/#the-map-element">https://html.spec.whatwg.org/#the-map-element</a></li>
<li><a href="https://tools.ietf.org/html/bcp47#section-2.1.1">https://tools.ietf.org/html/bcp47#section-2.1.1</a></li>
</ul>
<h2 id="selector">Selector</h2>
<h3 id="selector">Selector</h3>
<pre><code class="css_example language-css_example">[id*=" "],
[lang*=" "],
map[name*=" "]
</code></pre>
<h2 id="test">Test</h2>
<h3 id="test">Test</h3>
<pre><code class="html_example language-html_example">&lt;p id="my id"&gt;This is my beautiful element with an ID&lt;/p&gt;
</code></pre>
</article>
Expand Down Expand Up @@ -1531,7 +1531,7 @@ <h3 id="test">Test</h3>
</svg>
</a>
</p>
<p>® 2014 —&nbsp;2020 <strong>Gaël Poupard</strong></p>
<p>® 2014 —&nbsp;2022 <strong>Gaël Poupard</strong></p>
<p>This project is distributed under license <a href="https://opensource.org/licenses/MIT" title="The MIT licence">MIT</a> and <a href="https://creativecommons.org/licenses/by/3.0/fr/" hreflang="fr" title="Explications de la licence">CC BY 3.0 FR</a>. <a class="end" href="#top">Back to top</a></p>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ <h2>Contribution</h2>
</svg>
</a>
</p>
<p>® 2014 —&nbsp;2020 <strong>Gaël Poupard</strong></p>
<p>® 2014 —&nbsp;2022 <strong>Gaël Poupard</strong></p>
<p>This project is distributed under license <a href="https://opensource.org/licenses/MIT" title="The MIT licence">MIT</a> and <a href="https://creativecommons.org/licenses/by/3.0/fr/" hreflang="fr" title="Explications de la licence">CC BY 3.0 FR</a>. <a class="end" href="#top">Back to top</a></p>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion docs/obsoletes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ <h3 id="test">Test</h3>
</svg>
</a>
</p>
<p>® 2014 —&nbsp;2020 <strong>Gaël Poupard</strong></p>
<p>® 2014 —&nbsp;2022 <strong>Gaël Poupard</strong></p>
<p>This project is distributed under license <a href="https://opensource.org/licenses/MIT" title="The MIT licence">MIT</a> and <a href="https://creativecommons.org/licenses/by/3.0/fr/" hreflang="fr" title="Explications de la licence">CC BY 3.0 FR</a>. <a class="end" href="#top">Back to top</a></p>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion docs/warnings/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1576,7 +1576,7 @@ <h3 id="test">Test</h3>
</svg>
</a>
</p>
<p>® 2014 —&nbsp;2020 <strong>Gaël Poupard</strong></p>
<p>® 2014 —&nbsp;2022 <strong>Gaël Poupard</strong></p>
<p>This project is distributed under license <a href="https://opensource.org/licenses/MIT" title="The MIT licence">MIT</a> and <a href="https://creativecommons.org/licenses/by/3.0/fr/" hreflang="fr" title="Explications de la licence">CC BY 3.0 FR</a>. <a class="end" href="#top">Back to top</a></p>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion docs/webextension/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ <h3 id="test">Test</h3>
</svg>
</a>
</p>
<p>® 2014 —&nbsp;2020 <strong>Gaël Poupard</strong></p>
<p>® 2014 —&nbsp;2022 <strong>Gaël Poupard</strong></p>
<p>This project is distributed under license <a href="https://opensource.org/licenses/MIT" title="The MIT licence">MIT</a> and <a href="https://creativecommons.org/licenses/by/3.0/fr/" hreflang="fr" title="Explications de la licence">CC BY 3.0 FR</a>. <a class="end" href="#top">Back to top</a></p>
</div>
</footer>
Expand Down
8 changes: 4 additions & 4 deletions sass/themes/_error.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ name: attribute-whitespace
category: Errors
---
## Description
### Description
Some HTML attributes should not contain any whitespace —namely `[id]`, `[lang]` and `map[name]`.
## Reference
### Reference
* <https://html.spec.whatwg.org/#the-id-attribute>
* <https://html.spec.whatwg.org/#the-map-element>
* <https://tools.ietf.org/html/bcp47#section-2.1.1>
## Selector
### Selector
```css_example
[id*=" "],
[lang*=" "],
map[name*=" "]
```
## Test
### Test
```html_example
<p id="my id">This is my beautiful element with an ID</p>
```
Expand Down

0 comments on commit ee4e117

Please sign in to comment.