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

Re: Order of attributes -- FAQ

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Thu, 19 Jul 2001 08:38:15 -0400
To: "www-dom@w3.org." <www-dom@w3.org>
Message-ID: <OFABF2CB82.A78DCEAD-ON85256A8E.0044ED7B@pok.ibm.com>

 By Definition, if you're retrieving it from a NamedNodeMap the order of
retrieval is not guaranteed. Quoting the DOM spec: "... NamedNodeMaps are
not maintained in any particular order. Objects contained in an object
implementing NamedNodeMap may also be accessed by an ordinal index, but
this is simply to allow convenient enumeration of the contents of a
NamedNodeMap, and does not imply that the DOM specifies an order to these

But folks keep asking. Might be worth adding a FAQ entry to re-state this,
and the justification behind it...

Joe Kesselman  / IBM Research
Received on Thursday, 19 July 2001 08:38:51 UTC

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