Re: latest DOM spec 19980720

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 UTC