new Document() now returns Document instead of XMLDocument

Published: | Categories: DOM | Creative Commons BY-SA 3.0

Description

The Document constructor starts returning a Document object instead of XMLDocument to follow the latest spec. They are identical except the load method which is only available on XMLDocument. The DOMImplementation.createDocument method continues returning an XMLDocument object.

References