Query regarging nodeName and getTagName()

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 UTC