From ede68fa423107fbab74d07b307d7dcb03c00dfbd Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Sun, 1 Jan 2023 23:18:13 +0100 Subject: [PATCH] Remove obsolete HTML keyword ``link rel="shortcut"`` (#11069) The link relationship keyword `shortcut` does not appear in the HTML 5 specification [1]. It was used by historic browsers (i.e. Internet Explorer 6) which Sphinx no longer supports. [1]: HTML5 Specification, 4.6.7.8 Link type "icon", https://html.spec.whatwg.org/#rel-icon --- sphinx/themes/basic/layout.html | 2 +- tests/test_build_html.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sphinx/themes/basic/layout.html b/sphinx/themes/basic/layout.html index f22b12124..6e9096a1d 100644 --- a/sphinx/themes/basic/layout.html +++ b/sphinx/themes/basic/layout.html @@ -137,7 +137,7 @@ href="{{ pathto('_static/opensearch.xml', 1) }}"/> {%- endif %} {%- if favicon_url %} - + {%- endif %} {%- endif %} {%- block linktags %} diff --git a/tests/test_build_html.py b/tests/test_build_html.py index 11a03b944..d985aad76 100644 --- a/tests/test_build_html.py +++ b/tests/test_build_html.py @@ -1370,7 +1370,7 @@ def test_html_remote_logo(app, status, warning): result = (app.outdir / 'index.html').read_text(encoding='utf8') assert ('' in result) - assert ('' in result) + assert ('' in result) assert not (app.outdir / 'python-logo.png').exists()