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

Re: parentNode

From: Mike Champion <mcc@arbortext.com>
Date: Tue, 28 Jul 1998 21:17:07 -0400
Message-Id: <98Jul28.211330edt.26881@thicket.arbortext.com>
To: keshlam@us.ibm.com, www-dom@w3.org
At 06:08 PM 7/28/98 -0400, keshlam@us.ibm.com wrote:
>     There are other ways of creating nodes, however: most languages have a
>     "new" operator.
>It's legitimate to say "That will allocate the space but will not produce a
>properly initialized/valid/usable object."

I think the basic issue is that the DOM defines interfaces, not classes,
therefore we simply cannot define constructors for classes we say nothing
about.  We can define factory methods, and that's what we do.  The actual
classes that get instantiated by our factor methods may bear only
superficial resemblance to the DOM APIs, so there is no reason to think DOM
code that called new() would even compile, much less work, across
Received on Tuesday, 28 July 1998 21:17:10 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:04 UTC