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

does #document mean "document" or "#document"?

From: Adam Dingle <adam@avantgo.com>
Date: Fri, 17 Mar 2000 14:00:32 -0500 (EST)
Message-ID: <00ae01bf9042$e6de1aa0$0b80000a@avantgo.com>
To: <www-dom@w3.org>
The DOM spec (both level 1 and the level 2 candidate) specifies that the Node
interface has a "nodeName" attribute; the spec has a table showing the value of
the "nodeName" attribute (and other attributes) for each node type.  The table
row for the Document node type looks like this:

Document    #document   null    null

Now, just what does "#document" mean?  Does it mean a string consisting of the #
character followed by the word "document"?  Or is the # some sort of notation
indicating a literal string, so that the string itself contains only the word
"document"?  This is really pretty unclear.  I searched the spec for an
explanation of the  "#" character, but couldn't find one.

-adam
Received on Wednesday, 22 March 2000 20:01:13 GMT

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