hbz / lobid

Linking Open Bibliographic Data
https://lobid.org/
Eclipse Public License 2.0
15 stars 4 forks source link

lobid.org not valid html #497

Closed dr0i closed 1 year ago

dr0i commented 1 year ago

https://validator.w3.org/nu/?doc=http%3A%2F%2Flobid.org%2F

Because of this firefox complains with "Content Encoding Error" when opening the view-source (view-source:http://lobid.org/)

Phu2 commented 1 year ago

The index-en and index-de files do not have any extensions. Our webserver doesn't provide the Content-Type http header for these files and makes Firefox complaining. Directive added to the Apache vhost config:

+                # matches eg. index-en, index-de files without extension
+                <FilesMatch "^index[^.]+$">
+                        ForceType text/html
+                </FilesMatch>

Now the "Content Encoding Error" is gone. And the HTML validator now outputs three real errors:

A meta element with an http-equiv attribute whose value is X-UA-Compatible must have a content attribute with the value IE=edge. Self-closing syntax (/>) used on a non-void HTML element. Ignoring the slash and treating as a start tag. Stray end tag span.