Remove trailing slash on void HTML elements (#2009)
According to the W3C's HTML validator, trailing slashes in void-element have no effect, and might interact badly in some cases. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
69e162e5fe
commit
c16788f991
8 changed files with 12 additions and 11 deletions
1
changelogs/internal/newsfragments/2009.clarification
Normal file
1
changelogs/internal/newsfragments/2009.clarification
Normal file
|
@ -0,0 +1 @@
|
|||
Remove trailing slash on void HTML elements.
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
</summary>
|
||||
|
||||
<hr/>
|
||||
<hr>
|
||||
|
||||
{{ if (index $event_data "x-addedInMatrixVersion") }}
|
||||
{{ partial "added-in" (dict "v" (index $event_data "x-addedInMatrixVersion")) }}
|
||||
|
|
|
@ -7,5 +7,5 @@
|
|||
{{- $ico := resources.Get "icons/favicon.ico" -}}
|
||||
{{- $svg := resources.Get "icons/favicon.svg" -}}
|
||||
|
||||
<link rel="shortcut icon" href="{{ $ico.RelPermalink }}" >
|
||||
<link rel="icon" type="image/svg+xml" href="{{ $svg.RelPermalink }}" />
|
||||
<link rel="shortcut icon" href="{{ $ico.RelPermalink }}">
|
||||
<link rel="icon" type="image/svg+xml" href="{{ $svg.RelPermalink }}">
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
</h1>
|
||||
</summary>
|
||||
|
||||
<hr/>
|
||||
<hr>
|
||||
|
||||
{{ if $operation_data.deprecated }}
|
||||
{{ partial "alert" (dict "type" "warning" "omit_title" "true" "content" "This API is deprecated and will be removed from a future release.") }}
|
||||
|
@ -84,9 +84,9 @@
|
|||
</tr>
|
||||
</table>
|
||||
|
||||
<hr/>
|
||||
<hr>
|
||||
{{ partial "openapi/render-request" (dict "parameters" $operation_data.parameters "request_body" $operation_data.requestBody "anchor_base" $anchor ) }}
|
||||
<hr/>
|
||||
<hr>
|
||||
{{ partial "openapi/render-responses" (dict "responses" $operation_data.responses "anchor_base" $anchor ) }}
|
||||
|
||||
</details>
|
||||
|
|
|
@ -4,5 +4,5 @@
|
|||
*/}}
|
||||
|
||||
{{ with index .Page.RegularPages.ByDate.Reverse 0 }}
|
||||
<meta http-equiv="refresh" content="0; url={{ .RelPermalink }}" />
|
||||
<meta http-equiv="refresh" content="0; url={{ .RelPermalink }}">
|
||||
{{ end }}
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
</summary>
|
||||
|
||||
<hr/>
|
||||
<hr>
|
||||
|
||||
{{ if (index $definition "x-addedInMatrixVersion") }}
|
||||
{{ partial "added-in" (dict "v" (index $definition "x-addedInMatrixVersion")) }}
|
||||
|
|
|
@ -45,8 +45,8 @@
|
|||
{{- $fallback := $highRes.Resize (printf "%sx png" $width) -}}
|
||||
|
||||
<picture>
|
||||
<source srcset="{{ $lowRes.RelPermalink }}, {{ $highRes.RelPermalink }} 2x" type="image/webp" />
|
||||
<img src="{{ $fallback.RelPermalink }}" alt="{{ $alt }}" width="{{ $width }}" height="{{ $height }}" loading="lazy" />
|
||||
<source srcset="{{ $lowRes.RelPermalink }}, {{ $highRes.RelPermalink }} 2x" type="image/webp">
|
||||
<img src="{{ $fallback.RelPermalink }}" alt="{{ $alt }}" width="{{ $width }}" height="{{ $height }}" loading="lazy">
|
||||
</picture>
|
||||
{{- else -}}
|
||||
{{- errorf "diagram %s not found" $path -}}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
</h1>
|
||||
</summary>
|
||||
|
||||
<hr/>
|
||||
<hr>
|
||||
|
||||
{{ $event.description | markdownify }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue