W3C home > Mailing lists > Public > public-html@w3.org > January 2008

Re: Order of nodes from getElementsByClassName

From: Maciej Stachowiak <mjs@apple.com>
Date: Thu, 03 Jan 2008 20:33:56 -0800
To: James Graham <jg307@cam.ac.uk>
Cc: "public-html@w3.org" <public-html@w3.org>
Message-id: <BB9889B7-97D6-4DF9-886F-D382A0A70BDF@apple.com>

getElementsByName also fails to specify the order and should specify  
document order.



On Jan 3, 2008, at 4:30 PM, James Graham <jg307@cam.ac.uk> wrote:

>
> getElementsByClassName is currenly non-specific about the order of  
> the nodes in the returned NodeList. Unless there is a good reason  
> not to, it should probably specify the NodeList is in document  
> order, matching getElementsByTagName. This matches the current  
> behavior of Firefox and Opera. See [1] for dicussion.
>
> [1] http://krijnhoetmer.nl/irc-logs/whatwg/20080103#l-413
>
Received on Friday, 4 January 2008 04:34:18 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:29 UTC