This project is archived and is in readonly mode.

#1146 ✓resolved
Slik

[SVG] Element.clone() on IE 9

Reported by Slik | January 13th, 2011 @ 04:53 PM | in 1.3.1 (closed)

Got this errors developing SVG app

IE 9

MooTools:

var cleanClone = function(node, element, keepid){

if (!keepid) node.removeAttribute('id');
if (Browser.ie){
    node.clearAttributes(); // error, Object doesn't support method or property
    node.mergeAttributes(element); // error, Object doesn't support method or property
    node.removeAttribute('uid');
    if (node.options){
        var no = node.options, eo = element.options;
        for (var i = no.length; i--;) no[i].selected = eo[i].selected;
    }
}
var prop = formProps[element.tagName.toLowerCase()];
if (prop && element[prop]) node[prop] = element[prop];



};

Resolved (works fine):

var cleanClone = function(node, element, keepid){

if (!keepid) node.removeAttribute('id');
if (Browser.ie){
    if(node.clearAttributes) node.clearAttributes();
    if(node.mergeAttributes) node.mergeAttributes(element);
    node.removeAttribute('uid');
    if (node.options){
        var no = node.options, eo = element.options;
        for (var i = no.length; i--;) no[i].selected = eo[i].selected;
    }
}
var prop = formProps[element.tagName.toLowerCase()];
if (prop && element[prop]) node[prop] = element[prop];



};

Comments and changes to this ticket

  • Christoph Pojer

    Christoph Pojer February 22nd, 2011 @ 11:22 AM

    • State changed from “new” to “resolved”
    • Milestone set to 1.3.1
    • Assigned user set to “Christoph Pojer”
    • Milestone order changed from “867” to “0”

    Should be fixed in 1.3.1

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

Pages