Re: [dom] Document.defaultCharset (#58)

I don't see legitimate use case for this. As a Web author, you should _always_ use UTF-8 and declare that you are using UTF-8. At that point, what's the use case for knowing what the default would have been?

If someone tries to use it for something, what non-harmful uses it could have? I can think of a harmful use case: trying to guess what encoding to use for downloadable text files. (Correct way: Use UTF-8 BOM for downloadable text/plain and use Python, etc. -specific encoding declarations for downloadable scripts with #!.)

So I see this as useless and harmful if used, so I think we shouldn't spec this.

Can you tell if the Blink usage comes from "let's check _everything_" fingerprinting ad tech (not worth catering to)?

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/58#issuecomment-162481999

Received on Monday, 7 December 2015 10:55:30 UTC