Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The only part I don't get isn't even about the page in question:

> My first reaction was “why not just deliver something with Content-Type: text/plain; charset=utf-8 and dispense with the invalid code, but perhaps that’s just me overthinking the non-existent problem.

Yes, it's about the HTML-less plain text page https://no-ht.ml which is UTF-8 plain text which browsers should be able to render.

Does anyone here have deep knowledge, quotes from grimoires, or relevant strange tales?



I wrote about it at https://shkspr.mobi/blog/2022/12/you-dont-need-html/

I tested with a bunch of browsers on mobile and desktop - some browsers forced a download of plain text and / or wouldn't render the characters properly.

Some browsers assume the server is lying and think they know best.


Thanks for the post :)

I am wondering: why do you use the obsolete <plaintext> instead of <pre>?

Why do you use the `ml` extension?

By the way, I noticed some issues in the page:

- trailing whitespaces

- mixed of spaces/tabs

- some wide characters such as ▽ seems to create aligning issues


> why do you use the obsolete <plaintext> instead of <pre>?

Because it is funny.

> Why do you use the `ml` extension?

Because it is funny. Also, it was free.

> By the way, I noticed some issues in the page:

The source is open. Feel free to correct those issues.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: