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

Passing a node that's not an attribute like an attribute

From: Daniel Solís Torres <dsolis@soin.co.cr>
Date: Thu, 4 Jan 2001 14:53:26 -0600
To: <www-dom@w3.org>
With the attribute "atributtes" from the Node interface, you can retrieve a
NamedNodeMap interface containing the attributes of a node (if ti is an

In the NamedNodeMap interface there is a method called setNamedItem that
adds a node to the map of nodes.

Suposse you retrieve the attributes of an element with the attribute
Next, you invoke to the method setNamedItem to add an attribute, but you
pass another
type of node, say an element.

What must happen? You can add a node that's not an attribute to the list of
of an element?
Received on Thursday, 4 January 2001 15:54:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:36:47 UTC