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

NamedNodeMap

From: Allen, Michael B (RSCH) <Michael_B_Allen@ml.com>
Date: Mon, 9 Jul 2001 22:58:45 -0400
Message-ID: <B27EB33BAB29D2119ABF0001FA7EF289053BF05B@ewfd04.exchange.ml.com>
To: "'www-dom@w3c.org'" <www-dom@w3c.org>
Hi,

Is a NodeNamedMap ever used to hold anything but the Attrs of an
Element? Might an Attr be an entry in more than one
NamedNodeMap?  A simply way to implement NamedNodeMap in
c is to just add nextAttr and previousAtt members to Node and
make NamedNodeMap a struct like:

struct DOM_NamedNodeMap {
   unsigned long length;
   DOM_Node *first;
   DOM_Node *last;
}

If the answers to the above questions are "no" I don't see a problem
with this technique. Do you?

Thanks
Mike
Received on Monday, 9 July 2001 22:58:47 GMT

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