Sul script seguente, IE9 sta gettando un errore:IE9 tiri DOM eccezione: INVALID_CHARACTER_ERR (5)
SCRIPT5022: DOM eccezione: INVALID_CHARACTER_ERR (5) mootools-1.2.1-core-yc.js, linea 118 carattere 1
Document.implement({
newElement: function (A, B) {
if (Browser.Engine.trident && B) {
["name", "type", "checked"].each(function (C) {
if (!B[C]) {
return;
}
A += " " + C + '="' + B[C] + '"';
if (C != "checked") {
delete B[C];
}
});
A = "<" + A + ">";
}
return $.element(this.createElement(A)).set(B); //THIS IS LINE 118
},
newTextNode: function (A) {
return this.createTextNode(A);
},
getDocument: function() {
return this;
},
getWindow: function() {
return this.window;
}
});
Questo frammento fa parte della libreria j di Mootools che lo sviluppatore ha utilizzato sul sito. C'è una soluzione alternativa per correggere l'errore per IE?
controllare il mio aggiornamento per la mia risposta, penso che devi solo aggiornare lo script mootools alla versione 1.2.5 o successiva (stai usando 1.2.1) – ckozl