W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2000

Attribute Insertion behavior

From: Blaine Brodie <bbrodie@savagesoftware.com>
Date: Mon, 24 Apr 2000 11:08:54 -0700
Message-id: <fc.0085846d0000476e0085846d0000476e.4773@savagesoftware.com>
To: www-dom@w3.org
I have a question about the insertion behavior of an attribute in an
element's attribute list. 
Assuming I have an element 'e' and an attribute 'a' named "A" with value
"old", what is the expected behavior supposed to be in the following case?

e.setAttributeNode(a);
a.setValue("new");
Attr a2 = e.getAttributeNode("A");

Is a2's value supposed to equal "new" or "old".  Or is this strictly an
implementation decision?

Thanks,

Blaine Brodie
Received on Monday, 24 April 2000 14:08:55 GMT

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