Yes it works, but your example clones the <a>. I want to clone only its children, in a paragraph without links inside… Can you help me? Thank you :-)
I'm also using Firefox 3.6 (on Mac Os X). On 12 Feb, 11:28, אריה גלזר <[email protected]> wrote: > on my computer this works fine. i assume that this is about how browsers > implement the cloneNode method, and not about mootools. > I'm using FF3.6 btw > ----------- > אריה גלזר > 052-5348-561 > 5561 > > On Fri, Feb 12, 2010 at 10:51, Lorenzo De Tomasi <[email protected] > > > wrote: > > No way to clone the <a> childnodes, textnodes included. > > In the following example, the ", " is omitted… <http:// > >www.jsfiddle.net/dtZqr/> > > I would like to obtain: > > <p id="parentnode"> > > <a href="http://url.com"> > > <span class="1">one</span>, <span class="2">two</span> > > </a> > > </p> > > ***** > > <p id="target"> > > <span class="1">one</span>, <span class="2">two</span> > > </p> > > ***** > > > Thanks
