> 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.orgReceived on Thursday, 20 August 2009 02:35:23 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 08:25:01 GMT