aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Labastie <pierre.labastie@neuf.fr>2024-01-14 22:27:37 +0100
committerPierre Labastie <pierre.labastie@neuf.fr>2024-01-14 22:27:37 +0100
commit855d0c957459a7015fbfcecdcc006e2fa251e104 (patch)
tree7362ab1518d1c0bf9a16740ada8cdd0546ceddd7
parentec18a3872af00cfaa9ad2530b407940eba30fde7 (diff)
Remove an invalid attribute in longindex.html
For some reason, the stylesheets generate a <div xmlns:xlink="http://www.w3.org/1999/xlink" ...> 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).
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
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