On 9/8/2024 1:52 PM, Ganimard via Bug reports for GNU Emacs, the Swiss
army knife of text editors wrote:
I have recently discovered the website gastonle.ru, however it does not
render with Emacs Web Wowser. It appears to be a relatively simple
website and I cannot see what would prohibit it from rendering.
Checking that page via curl, it appears that it doesn't return a
Content-Type header. In the absence of that header, EWW assumes that the
page is plain text.
I have also tried it on an Ubuntu 22.04.4 LTS distro running Emacs 28.1
but it also fails to render. This therefore appears to be a bug in EWW.
From my reading of RFC9110[1], this is *technically* a bug (we should
assume application/octet-stream, not text/plain), but that wouldn't fix
the rendering here; it would probably make things worse. However, per
the RFC, EWW would be within its rights to guess that the page is HTML,
e.g. by checking for "<!doctype html>". It also recommends having that
be an option that can be disabled, which is reasonable (and in keeping
with Emacs's design principles anyway).
[1] https://www.rfc-editor.org/rfc/rfc9110#section-8.3-5