[whatwg/dom] Figure out what to do with XMLDocument (#278)

Right now `createDocument` returns an `XMLDocument`. It has this note:

> This method creates an XMLDocument rather than a normal document. They are identical except for the addition of the load() method deployed content relies upon.

Since load() is gone as of https://github.com/whatwg/html/commit/523f7a8773d2ab8a1eb0da6510651e8c5d2a7531, this note needs to be revised at the very least.

I see two options:

- Make XMLDocument another alias of Document, just like HTMLDocument is currently specced to be. Remove all references to XMLDocument from DOM, and have HTML add a sentence about the alias.
- Keep the current empty-derived-interface setup in DOM. Maybe add some disparaging comments about this being a legacy feature.

Personally, I lean toward making it an alias, unless any implementers object. I think that the Document = HTMLDocument = XMLDocument story is a pretty good one, and in Blink at least, we're pretty close to implementing it---there are only a very small number of things left on HTMLDocument, none of which look very problematic. So I'd prefer to continue on that course.

There may be more history here (e.g. implementer objections) of which I am not aware.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/278

Received on Wednesday, 6 July 2016 17:10:24 UTC