- From: Alex Russell <slightlyoff@google.com>
- Date: Wed, 19 Aug 2009 19:52:57 -0700
- To: Bo Yang <struggleyb.nku@gmail.com>
- Cc: Jonas Sicking <jonas@sicking.cc>, Ian Hickson <ian@hixie.ch>, Anne van Kesteren <annevk@opera.com>, www-dom@w3.org
On Wed, Aug 19, 2009 at 7:34 PM, Bo Yang<struggleyb.nku@gmail.com> wrote: >> 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("..."). :) There's no API like the one I suggest in any existing spec. I was only pointing out the mis-design in the DOM. Regards
Received on Thursday, 20 August 2009 02:53:36 UTC