Bug ID: 27743
Summary: It would be clearer if Documents had mode and type
explicitly included in their list of "internal slots"
OS: Windows NT
Assignee: [hidden email] Reporter: [hidden email] QA Contact: [hidden email] CC: [hidden email], [hidden email]
A document is assumed to be an XML document unless it is flagged as being an
HTML document. Whether a document is an HTML document or an XML document
affects the behavior of certain APIs.
A document is always set to one of three modes: no-quirks mode, the default;
quirks mode, used typically for legacy documents; and limited-quirks mode.
Unless stated otherwise, a document must be in no-quirks mode.
It would be good to include these "type" and "mode" variables in the list of
things associated to a document, viz. "Each document has an associated
encoding, content type, and URL."
>From an ES perspective, I'd say that mode/type are internal slots, just as
encoding, content type, and URL are. I am working to bring jsdom up to spec in
this regard and I found myself assigning doc._mode and doc._type properties
alongside doc._encoding, doc._contentType, and doc._url. (I'm not suggesting
switching to internal slot notation, but just using it as a point of view that
might be helpful.)
You are receiving this mail because:
You are on the CC list for the bug.