Tried to make a better test case:
http://jsbin.com/igiyu
http://jsbin.com/igiyu/edit
In IE6 with the "IE Developer Toolbar" i see the additional text
element after the inner <fieldset>
while the standard .cloneNode() doesn't have this behavior.
DOM Tree from "IE Developer Toolbar":
<form>
<!-- original -->
<fieldset>
<legend>
<div>
<fieldset>
<div>
<div>
<!-- cloned with cloneNode(true) -->
<fieldset>
<legend>
<div>
<fieldset>
<div>
<div>
<!-- cloned with jquery.clone() -->
<fieldset>
<legend>
<div>
<fieldset>
#text
<div>
<div>
Hope that I'm no longer making stupid errors in the test case :)
On Feb 20, 1:11 am, John Resig <[email protected]> wrote:
> Glad you're enjoying jQuery!
>
> As far as the extra text nodes go - I'm not hugely surprised,
> fieldsets are really only permitted to be inside forms - it's probably
> causing weird rendering problems. Did you mean a label or some other
> element?
>
> --John
>
> On Thu, Feb 19, 2009 at 4:38 PM, Martin <[email protected]> wrote:
>
> > Hi, first thank you John for the great gift (jquery)!
>
> > In IE6(winxp) seems that new text nodes, not that are not present in
> > the original <li>,
> > gets inserted between the <fieldset> and the <div>, if we .clone() it.
>
> > <html>
> > <head>
> > <script src='jquery-2009-02-16.js'></script>
> > </head>
> > <body>
>
> > <ol>
> > <li class="test">
> > <fieldset></fieldset><div></div>
> > </li>
> > </ol>
>
> > <script>
> > var o = $('li.test');
> > var c = o.clone();
> > o.after(c);
> > </script>
>
> > <body>
> > </html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---