W3C home > Mailing lists > Public > www-dom@w3.org > January to March 1998

Notes on DOM spec

From: Andrew n marshall <amarshal@usc.edu>
Date: Tue, 3 Mar 1998 14:06:02 -0800
Message-ID: <01BD46AD.846ACC00.amarshal@usc.edu>
To: "W3C DOM List (E-mail)" <www-dom@w3.org>

The following are a list of notes I've been keeping as I have been working 
implementing a DOM compliant XML parser.  Some are questions, Some are issues 
with the Java interfaces.

-----------------------------------------------
Notes on Core DOM:

 * Should DOM.createText include a boolean to set ignorableWhitespace? 
 Otherwise, what is the default value of this?
 * Should DOM.createAttribute implicitly set the attribute.specified flag?
 * What is the value of an Attribute such as "declare" in the following HTML 
OBJECT tag:
     <P><OBJECT declare
             id="earth.declaration"
             data="TheEarth.mpeg"
             type="application/mpeg">
        The <STRONG>Earth</STRONG> as seen from space.
     </OBJECT>
 * The description of Text.data says, "Text nodes contain just plain text, 
without markup and without entities".  Does this mean Text should not include 
translated character entities, such as '&' where "&amp;" was?  If this is 
true, how are these represented in the DOM?


-----------------------------------------------
Notes on XML DOM:

 * What are the NodeTypes of DocumentType (and the other DTD nodes)


-----------------------------------------------
Notes on the Java Interface Definition:

 * DOM needs to be declared as a class, not an interface, to be accessible in 
a consistent manner.
 * All methods need to be declared public.
 * The following need to convert their longs to ints (Java ints already are 
32-bit, as noted under "IDL Issues")
    node NodeList.item(long)
    long NodeList.length()
 * Node.NodeType constants need to be declared static


Andrew n marshall
  student - artist - programmer
    http://www.media-electronica.com/anm-bin/anm
      "Everyone a mentor,  Everyone a pupil"
Received on Tuesday, 3 March 1998 17:00:20 GMT

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