Re:HEAD – A guide to <head> elements
by tyingq on Monday September 30, 2019 @06:32PM
(#21120302)
Probably nice for people that save the HTML document locally via curl or similar.
[ Parent
| on HN ]
Re:HEAD – A guide to <head> elements
by combatentropy on Monday September 30, 2019 @07:50PM
(#21120745)
curl or similar could inject a meta tag.
Or we could have a default of UTF-8.
I don't dispute that it can be nice. I am just curious why so many say it is required.
Re:HEAD – A guide to <head> elements
by tyingq on Monday September 30, 2019 @07:56PM
(#21120779)
I imagine it's the cumulative amount of my first example, curl, and probably other "save as html" functionality in some browsers, crawlers, s3 buckets, archival tools, and so on. I'm sure many can do as you suggested and inject the header, but suspect many don't.
Another use case might be content that is authored in a content management system. Perhaps it's the easiest way to carry your intended charset to the destination.