Skip to content

Commit 66273ee

Browse files
Merge pull request #1831 from notriddle/notriddle/text-css
Remove `type="text/css"` from stylesheet links
2 parents 4abe7e9 + cc5266d commit 66273ee

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

templates/base.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
{%- block meta -%}{%- endblock meta -%}
1111

1212
{# Docs.rs styles #}
13-
<link rel="stylesheet" href="/-/static/vendored.css?{{ docsrs_version() | slugify }}" type="text/css" media="all" />
14-
<link rel="stylesheet" href="/-/static/style.css?{{ docsrs_version() | slugify }}" type="text/css" media="all" />
13+
<link rel="stylesheet" href="/-/static/vendored.css?{{ docsrs_version() | slugify }}" media="all" />
14+
<link rel="stylesheet" href="/-/static/style.css?{{ docsrs_version() | slugify }}" media="all" />
1515

1616
<link rel="search" href="/-/static/opensearch.xml" type="application/opensearchdescription+xml" title="Docs.rs" />
1717

templates/macros.html

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
var link = document.createElement("link");
4343
link.rel = "stylesheet";
4444
link.href = stylesheet;
45-
link.type = "text/css";
4645
link.media = "all";
4746
document.head.appendChild(link);
4847
</script>

templates/rustdoc/head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{%- import "macros.html" as macros -%}
2-
<link rel="stylesheet" href="/-/static/{{metadata.rustdoc_css_file}}?{{ docsrs_version() | slugify }}" type="text/css" media="all" />
2+
<link rel="stylesheet" href="/-/static/{{metadata.rustdoc_css_file}}?{{ docsrs_version() | slugify }}" media="all" />
33

44
<link rel="search" href="/-/static/opensearch.xml" type="application/opensearchdescription+xml" title="Docs.rs" />
55

templates/rustdoc/vendored.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<link rel="stylesheet" href="/-/static/vendored.css?{{ docsrs_version() | slugify }}" type="text/css" media="all" />
1+
<link rel="stylesheet" href="/-/static/vendored.css?{{ docsrs_version() | slugify }}" media="all" />
22

0 commit comments

Comments
 (0)