Add tr as child of thead in HTML tables

It is invalid HTML for th to be the direct children of thead

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2024-06-20 04:30:14 +02:00
parent 4e32fca05f
commit 3d24029c00
No known key found for this signature in database
GPG key ID: 0C971D9DBC9D678D
3 changed files with 17 additions and 9 deletions

View file

@ -16,8 +16,10 @@
<table class="content-type-table">
<thead>
<th class="col-name">Content-Type</th>
<th class="col-description">Description</th>
<tr>
<th class="col-name">Content-Type</th>
<th class="col-description">Description</th>
</tr>
</thead>
{{ range $idx, $content_type := $content_types }}
<tr>

View file

@ -31,9 +31,11 @@
<caption>{{ . }}</caption>
{{ end }}
<thead>
<th class="col-name">Name</th>
<th class="col-type">Type</th>
<th class="col-description">Description</th>
<tr>
<th class="col-name">Name</th>
<th class="col-type">Type</th>
<th class="col-description">Description</th>
</tr>
</thead>
{{ range $property_name, $property := $properties }}
@ -90,8 +92,10 @@ resolve-additional-types.)
<caption>{{ . }}</caption>
{{ end }}
<thead>
<th class="col-type">Type</th>
<th class="col-description">Description</th>
<tr>
<th class="col-type">Type</th>
<th class="col-description">Description</th>
</tr>
</thead>
{{ $property := . }}

View file

@ -20,8 +20,10 @@
<table class="response-table">
<thead>
<th class="col-status">Status</th>
<th class="col-status-description">Description</th>
<tr>
<th class="col-status">Status</th>
<th class="col-status-description">Description</th>
</tr>
</thead>
{{ range $code, $response := $responses }}