Duplicated data for serialize with "all selector" and with fieldset
<p>asking this just to understand.</p>

<p>Please see the problem online (using FireBug console) - <a href="http://jsfiddle.net/ihtus/3DuPW/" rel="nofollow">http://jsfiddle.net/ihtus/3DuPW/</a></p>

<pre><code>&lt;div id='mydiv1'&gt;
    this is with fieldset and $('#mydiv1 *').serialize()&lt;br/&gt;
    &lt;fieldset&gt;&lt;legend&gt;aa&lt;/legend&gt;
        &lt;input type='text' name='myinp' value=''&gt;
        &lt;input id='save' type='button' value='serialize' onclick="console.log($('#mydiv1 *').serialize())"&gt;
    &lt;/fieldset&gt;
    &lt;br/&gt;result: myinp=myval&amp;myinp=myval
&lt;/div&gt;
&lt;br/&gt;&lt;br/&gt;

&lt;div id='mydiv2'&gt;
    this is without fieldset and $('#mydiv1 *').serialize()&lt;br/&gt;
    &lt;input type='text' name='myinp' value=''&gt;
    &lt;input id='save' type='button' value='serialize' onclick="console.log($('#mydiv2 *').serialize())"&gt;
    &lt;br/&gt;result: myinp=myval
&lt;/div&gt;
&lt;br/&gt;&lt;br/&gt;

&lt;div id='mydiv3'&gt;
    this is with fieldset and $('#mydiv1 :input').serialize()&lt;br/&gt;
    &lt;fieldset&gt;&lt;legend&gt;aa&lt;/legend&gt;
        &lt;input type='text' name='myinp' value=''&gt;
        &lt;input id='save' type='button' value='serialize' onclick="console.log($('#mydiv3 :input').serialize())"&gt;
    &lt;/fieldset&gt;
    &lt;br/&gt;result: myinp=myval
&lt;/div&gt;
</code></pre>

<p>Question: why when having $('#mydiv1 *').serialize() and fieldset => the result is duplicated "myinp=myval&amp;myinp=myval"</p>

<p>There is no duplication when having $('#mydiv1 *').serialize() and NO fieldset.</p>

<p>I know I should use $('#mydiv1 :input').serialize(), and I will use it... but I am just curious why the data is duplicated in that certain case.</p>

<p>Thanks.</p>
