Skip to content

Commit 07a243b

Browse files
committed
rustdoc: remove `type="text/css" from stylesheet links
MDN directly recommends this in <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link>, since "CSS is the only stylesheet language used on the web."
1 parent cfb5ae2 commit 07a243b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustdoc/html/templates/page.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
<link rel="preload" as="font" type="font/woff2" crossorigin href="{{static_root_path|safe}}SourceCodePro-Regular.ttf.woff2"> {#- -#}
1414
<link rel="preload" as="font" type="font/woff2" crossorigin href="{{static_root_path|safe}}SourceSerif4-Bold.ttf.woff2"> {#- -#}
1515
<link rel="preload" as="font" type="font/woff2" crossorigin href="{{static_root_path|safe}}SourceCodePro-Semibold.ttf.woff2"> {#- -#}
16-
<link rel="stylesheet" type="text/css" {# -#}
16+
<link rel="stylesheet" {# -#}
1717
href="{{static_root_path|safe}}normalize{{page.resource_suffix}}.css"> {#- -#}
18-
<link rel="stylesheet" type="text/css" {# -#}
18+
<link rel="stylesheet" {# -#}
1919
href="{{static_root_path|safe}}rustdoc{{page.resource_suffix}}.css" {# -#}
2020
id="mainThemeStyle"> {#- -#}
2121
{%- for theme in themes -%}
22-
<link rel="stylesheet" type="text/css" {# -#}
22+
<link rel="stylesheet" {# -#}
2323
href="{{static_root_path|safe}}{{theme}}{{page.resource_suffix}}.css" {# -#}
2424
{%- if theme == "light" -%}
2525
id="themeStyle"
@@ -51,7 +51,7 @@
5151
href="{{static_root_path|safe}}noscript{{page.resource_suffix}}.css"> {#- -#}
5252
</noscript> {#- -#}
5353
{%- if layout.css_file_extension.is_some() -%}
54-
<link rel="stylesheet" type="text/css" {# -#}
54+
<link rel="stylesheet" {# -#}
5555
href="{{static_root_path|safe}}theme{{page.resource_suffix}}.css"> {#- -#}
5656
{%- endif -%}
5757
{%- if !layout.favicon.is_empty() -%}

0 commit comments

Comments
 (0)