summaryrefslogtreecommitdiff
path: root/tests/test_build_html.py
diff options
context:
space:
mode:
authorRotzbua <Rotzbua@users.noreply.github.com>2023-01-01 23:18:13 +0100
committerGitHub <noreply@github.com>2023-01-01 22:18:13 +0000
commitede68fa423107fbab74d07b307d7dcb03c00dfbd (patch)
tree1b23216039b5e861a86c2bb50c7f278fb8690a47 /tests/test_build_html.py
parent584108031919abb016e41bb3dd5c90094d04fa76 (diff)
downloadsphinx-git-ede68fa423107fbab74d07b307d7dcb03c00dfbd.tar.gz
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
Diffstat (limited to 'tests/test_build_html.py')
-rw-r--r--tests/test_build_html.py2
1 files changed, 1 insertions, 1 deletions
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 ('<img class="logo" src="https://www.python.org/static/img/python-logo.png" alt="Logo"/>' in result)
- assert ('<link rel="shortcut icon" href="https://www.python.org/static/favicon.ico"/>' in result)
+ assert ('<link rel="icon" href="https://www.python.org/static/favicon.ico"/>' in result)
assert not (app.outdir / 'python-logo.png').exists()