W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2002

Re: Creating <!DOCTYPE programmatically

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Wed, 8 May 2002 09:24:11 -0400
To: www-dom@w3.org
Message-ID: <OFEDE4B9CD.F4CE1A9A-ON85256BB3.00487D8E@pok.ibm.com>

DOM Level 2 added fields to DocumentType which can describe the <!DOCTYPE>.
These are set at the time the DocumentType node is created -- which, in
DOM2, must be before the Document node is created, since some enhanced DOMs
might want to use the DocumentType information to help guide selection of
specific DOM implementation classes.

A modern DOM serializer should recognize those fields and produce the
correct output.

DOM3 was considering allowing later binding of the DocumentType node to the
Document; I'm not sure what the current status of that proposal is.



______________________________________
Joe Kesselman  / IBM Research
Received on Wednesday, 8 May 2002 09:24:46 GMT

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