This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26706 - Ordering of array of web elements returned is undefined
Summary: Ordering of array of web elements returned is undefined
Status: NEW
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Browser Testing and Tools WG
QA Contact: Browser Testing and Tools WG
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-02 05:58 UTC by Andreas Tolfsen
Modified: 2014-09-02 05:58 UTC (History)
1 user (show)

See Also:


Attachments

Description Andreas Tolfsen 2014-09-02 05:58:10 UTC
The only element location strategy that mentions ordering of the returned web elements is the CSS selector in section 9.2.1, and it uses a reference to querySelectorAll.  If drivers choose to implement this differently it feels to me that we should define the sorting order explicitly or reference the ECMAScript specification's.

This is further complicated by the other location strategies not having ordering defined.

Link to relevant section:

https://dvcs.w3.org/hg/webdriver/raw-file/tip/webdriver-spec.html#element-location-strategies