From 855d0c957459a7015fbfcecdcc006e2fa251e104 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sun, 14 Jan 2024 22:27:37 +0100 Subject: [PATCH] Remove an invalid attribute in longindex.html For some reason, the stylesheets generate a
element in longindex.html, but this is not valid in xhtml (the attribute xmlns=xlink is not defined in the DTD). The problem is that tidy then thinks it is not a true xhtml and removes the doctype declaration. But when a browser receives a file without doctype declaration, it thinks it uses an old standard, and switches to "quirks mode" (for firefox, this can be seen by typing ctrl-I on the page). --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 9cddff915..00eeb2748 100644 --- a/Makefile +++ b/Makefile @@ -48,6 +48,7 @@ book: validate profile-html $(Q)mkdir -p $(BASEDIR)/stylesheets $(Q)cp stylesheets/lfs-xsl/*.css $(BASEDIR)/stylesheets $(Q)sed -i 's|../stylesheet|stylesheet|' $(BASEDIR)/index.html + $(Q)sed -i 's/xmlns:xlink.*xlink"//' $(BASEDIR)/longindex.html $(Q)mkdir -p $(BASEDIR)/images $(Q)cp images/*.png $(BASEDIR)/images