- From: Chris Dumez <notifications@github.com>
- Date: Fri, 16 Sep 2016 08:50:56 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Message-ID: <whatwg/dom/issues/308/247636495@github.com>
For the record, here is my opinion as well: - Document continues to return a Document (not a HTMLDocument or XMLDocument) whose type is "xml". - Update the DOM spec so that XMLDocument becomes an alias to Document (WebKit / Blink used to do this until they introduced the XMLDocument type to align with the spec. However, given that XMLDocument brings nothing on non-Gecko browsers, I'd love to go back to it being an alias). - Bring back HTMLDocument because unlike SVGDocument / XMLDocument, it has a decent amount of API that is only meaningful for HTML documents (e.g. document.write(), document.open()), or legacy API that I don't really want to expose to more document types (e.g. document.all(), document.bgColor). - Add a constructor to HTMLDocument If a major browser besides Edge actually manages/decides to move everything from HTMLDocument to Document, then I could be convinced otherwise. However, it has been years and it has not happened. I personally do not think the "benefits" of merging HTMLDocument into Document are worth the effort / risks involved. -- 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/308#issuecomment-247636495
Received on Friday, 16 September 2016 15:51:39 UTC