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

Re: latest DOM spec 19980720

From: Ted Bashor <bashor@crossroute.com>
Date: Tue, 21 Jul 1998 14:31:21 -0700
Message-ID: <35B508A9.61BDB46B@crossroute.com>
To: "Stephen R. Savitzky" <steve@crc.ricoh.com>
CC: www-dom@w3.org
Stephen R. Savitzky wrote:
>
> I agree that it's ugly, and I wouldn't have suggested it except that the set
> of core node type interfaces is small and fixed (or, rather, it would be
> fixed if there were a Declaration subclass), and that the Document interface
> already has a corresponding set of "create" operations.  The latter is the
> most telling -- the DOM has already started down that path; one might as
> well do it right.

I wouldn't say that having to update a factory class (Document) to
accommodate a new subclass violates OO principles to the same degree as
having to update a base class to accommodate a new subclass.
Received on Tuesday, 21 July 1998 17:28:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:45 GMT