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

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

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Fri, 5 Jan 2001 09:59:40 -0500
To: www-dom@w3.org
Message-ID: <OF59E94DDA.DE20B7D0-ON852569CB.00522045@pok.ibm.com>
>Next, you invoke to the method setNamedItem to add an attribute,
>but you pass another type of node, say an element.

Since this NamedNodeMap is only intended to contain the element's Attrs,
that should throw
                             If any node is inserted somewhere it doesn't

You're absolutely right --  we don't say this explicitly, and we
undoubtedly should. Good catch!

Time to restart the errata list...

Joe Kesselman  / IBM Research
Received on Friday, 5 January 2001 09:59:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:07 UTC