This project is archived and is in readonly mode.

#1201 ✓invalid
kirilloid

Element.clone + Opera11 + Slick = :-(

Reported by kirilloid | March 18th, 2011 @ 08:43 PM

In Opera 11 Element.clone method copies all attribuites, including slick:uniqueid, what later results in incorrect return from $$. This attribute appears in element only after one slick pass.

Appears in next versions:
Opera 11.01 (Build 1190) WinXP x32, Win7 x64
Opera 11.10 (Build 2048) Win7 x32

Other main browsers seems to be unaffected (didn't tested in FF4)

I suppose, Element.clone shouldn't copy this attribute.

Test example in attachment.
Expected result: alert(3)

Comments and changes to this ticket

  • kirilloid

    kirilloid March 18th, 2011 @ 08:59 PM

    live fix suggestion (tested in some browsers):

    find clone:function(X,Y)
    then code Z.removeAttribute("id");
    and add Z.removeAttribute("slick:uniqueid");

    X,Y,Z may differ depending on build and compression

  • Arian

    Arian March 18th, 2011 @ 10:11 PM

    Using MooTools 1.3.1 and opera 11.10 (on Ubuntu) alerts 3: http://jsfiddle.net/arian/U9djv/

  • kirilloid

    kirilloid March 20th, 2011 @ 05:48 PM

    Yes, it works ok with 1.3.1, but not in 1.3.0 - Opera 11.01 (Build 1190) WinXP x32
    I found bug in 1.3.0, then read changelog about 1.3.1, but didn't found anything about it there.

  • Arian

    Arian March 21st, 2011 @ 06:02 PM

    • State changed from “new” to “invalid”

    It was probably something in Slick - github.com/mootools/slick - so check the commit log there. It is also possible that something else fixed it without really knowing about this bug. Anyhow, it works again :D

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Attachments

Pages