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 26228 - [WebDriver Spec] 11.2.1 executeScript doesn't specify how to handle self-recursive objects
Summary: [WebDriver Spec] 11.2.1 executeScript doesn't specify how to handle self-recu...
Status: RESOLVED DUPLICATE of bug 26137
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: 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-06-28 07:58 UTC by Łukasz Rekucki
Modified: 2014-06-28 08:08 UTC (History)
3 users (show)

See Also:


Attachments

Description Łukasz Rekucki 2014-06-28 07:58:17 UTC
The algorithm for post-processing of return value requires that:

1. If result is:
    (...)
    5. an object, then return the object created by recursively applying this algorithm to each property in result. 


If the object is self-recursive (i.e. var x = {}; x['parent'] = x), this causes an infinite recursion. Such objects are actually more common then you would expects. For example, the popular library jQuery represents it's search results as objects that are self-recursive.
Comment 1 James Graham 2014-06-28 08:08:39 UTC

*** This bug has been marked as a duplicate of bug 26137 ***