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

Query regarging nodeName and getTagName()

From: Stephen R. Savitzky <steve@crc.ricoh.com>
Date: 28 Jul 1998 15:03:33 -0700
To: www-dom@w3.org
Message-ID: <qcr9z58wga.fsf@gelion.crc.ricoh.com>

In the documentation for Element, it is specified that, in the following
example, 
               <elementExample id="demo"> 
                       ... 
               </elementExample> 

getTagName returns "elementExample".  Would the attribute nodeName contain
"demo" in this case?  If that's true, perhaps getTagName should be renamed
something like getElementTag, or nodeName renamed nodeID.  

It would seem essential that the nodeName contain the ID, because that's the
only way you can use NamedNodeMap to represent the ID/NAME namespace, but
it's not really clear in the specification.

-- 
 Stephen R. Savitzky   Chief Software Scientist, Ricoh Silicon Valley, Inc., 
<steve@rsv.ricoh.com>                            California Research Center
 voice: 650.496.5710   fax: 650.854.8740    URL: http://rsv.ricoh.com/~steve/
  home: <steve@starport.com> URL: http://www.starport.com/people/steve/
Received on Tuesday, 28 July 1998 17:59:36 GMT

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