[Prototype-core] Re: Error in Opera (possible bug)
I created a ticket and a patch a while ago about this very thing. [PATCH] document._getElementsByXPath() doesnt grace elements with $(), causes issue in Opera 9.21 http://dev.rubyonrails.org/ticket/8843 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] Re: Error in Opera (possible bug)
Note - this causes problems when using the invoke function as well... Opera test Element.addMethods("DIV", { divOperaTest: function(e) { window.alert("Test Successful (" + e.innerHTML + ")"); } }); document.observe("contentloaded", function() { $$("div").invoke("divOperaTest"); }); Test Div Test Div 2 Errors with: Event thread: dataavailable Error: name: TypeError message: Statement on line 698: Could not convert undefined or null to object Backtrace: Line 698 of linked script file://users/ntoone/prototype.js return value[method].apply(value, args); Line 624 of linked script file://users/ntoone/prototype.js results.push(iterator(value, index)); Line 584 of linked script file://users/ntoone/prototype.js iterator(value, index++); Line 831 of linked script file://users/ntoone/prototype.js iterator(this[i]); Line 585 of linked script file://users/ntoone/prototype.js this._each((function (value) { iterator(value, index++); } )); Line 625 of linked script file://users/ntoone/prototype.js this.each((function (value,index) { results.push(iterator(value, index)); } )); Line 697 of linked script file://users/ntoone/prototype.js return this.map((function (value) { return value[method].apply(value, args); } )); Line 9 of inline#1 script in file://users/ntoone/test.html $$("div").invoke("divOperaTest"); Line 3867 of linked script file://users/ntoone/prototype.js handler.call(event.target, event); At unknown location [statement source code not available] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] Re: Error in Opera (possible bug)
As a patch: Changing line 1548 in prototype.js from: results.push(query.snapshotItem(i)); to: results.push($(query.snapshotItem(i))); seems to solve this particular issue - I am not sure if that affects other things negatively or not... (again, this is the 1.6.0_rc0 version) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] Re: Error in Opera (possible bug)
I figured I'd just log an issue in trac instead http://dev.rubyonrails.org/ticket/9717 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---