[whatwg] Clarification request for charset/characterSet/defaultCharset
nzakas at yahoo-inc.com
Tue Jul 6 16:54:24 PDT 2010
I was just reading through the spec and am having trouble understanding
the details of document.charset, document.characterSet, and
document.defaultCharset. It seems to me that document.characterSet is
simply a read-only equivalent of document.charset (I'm guessing these
are both here due to already-existing implementations), which is a
little confusing but not terribly so. I'm more interested in
document.defaultCharset and how it relates to the others. Some
1) Should document.charset/document.characterSet always start out
equivalent to document.defaultCharset?
2) What is the canonical source of truth for document.defaultCharset (is
this a system setting, a browser setting, or a document setting)?
3) If document.charset is set to a new value, is there any change
reflected in document.defaultCharset? What about vice-versa?
Commander Lock: "Dammit Morpheus, not everyone believes what you
Morpheus: "My beliefs do not require them to."
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the whatwg