<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>26228</bug_id>
          
          <creation_ts>2014-06-28 07:58:17 +0000</creation_ts>
          <short_desc>[WebDriver Spec] 11.2.1 executeScript doesn&apos;t specify how to handle self-recursive objects</short_desc>
          <delta_ts>2014-06-28 08:08:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Browser Test/Tools WG</product>
          <component>WebDriver</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>26137</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Łukasz Rekucki">lrekucki</reporter>
          <assigned_to name="Browser Testing and Tools WG">public-browser-tools-testing</assigned_to>
          <cc>james</cc>
    
    <cc>lrekucki</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="Browser Testing and Tools WG">public-browser-tools-testing</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>108450</commentid>
    <comment_count>0</comment_count>
    <who name="Łukasz Rekucki">lrekucki</who>
    <bug_when>2014-06-28 07:58:17 +0000</bug_when>
    <thetext>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[&apos;parent&apos;] = x), this causes an infinite recursion. Such objects are actually more common then you would expects. For example, the popular library jQuery represents it&apos;s search results as objects that are self-recursive.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108451</commentid>
    <comment_count>1</comment_count>
    <who name="James Graham">james</who>
    <bug_when>2014-06-28 08:08:39 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 26137 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>