W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2009

Re: How can I create a HTMLDocument from the DOMImplementation

From: Bo Yang <struggleyb.nku@gmail.com>
Date: Thu, 20 Aug 2009 10:34:42 +0800
Message-ID: <41f08ee10908191934r575e6d0fl8c80ff9d04791329@mail.gmail.com>
To: Alex Russell <slightlyoff@google.com>
Cc: Jonas Sicking <jonas@sicking.cc>, Ian Hickson <ian@hixie.ch>, Anne van Kesteren <annevk@opera.com>, www-dom@w3.org
> In addition to being unintuitive, it's sort of terrible JavaScript API
> design besides. It'd be more idiomatic for the Document constructor to
> take a bag of arguments. E.g.:
>   var d = new Document({ mimetype: "text/html", ... });

Is there any method like above? I think the spec point out the only
way to create a document is to call
DOMImplementation.createDocument("..."). :)

My blog: http://blog.morebits.org
Received on Thursday, 20 August 2009 02:35:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:36:55 UTC