You know, Gentlemen, I became aware of SpecificElementExtensions only because my FF 2.0.xxx started blurting out errors with Prototype v 1.5.1.1 that certain functions on extended DOM elements ( $(..) ) don't actually exist. Then I found SpecificElementExtensions, and then - this pretty discussion.
Hasn't it been tested, that apparently Prototype v1.5.1.1 doesn't work well with FF 2.0? How come no one gets warned from http://prototypejs.org's blog? Aah. Anyhow, thanks for the suggestions on this point. It worked with me. BrowserFeatures: { XPath: !!document.evaluate, ElementExtensions: false, //!!window.HTMLElement, http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/b2c29ae55f5e9739/76664ecad4546be4?lnk=gst&q=SpecificElementExtensions&rnum=1#76664ecad4546be4 SpecificElementExtensions: false /* (document.createElement('div').__proto__ !== document.createElement('form').__proto__) */ } and.. #1828, after "Object.extend(Element, Element.Methods);": /* http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/b2c29ae55f5e9739/76664ecad4546be4?lnk=gst&q=SpecificElementExtensions&rnum=1#76664ecad4546be4 if (!Prototype.BrowserFeatures.ElementExtensions && document.createElement('div').__proto__) { window.HTMLElement = {}; window.HTMLElement.prototype = document.createElement('div').__proto__; Prototype.BrowserFeatures.ElementExtensions = true; }*/ Works well. Thanks once again. Waiting for the working update. Best regards, Andrew Revinsky On Jun 14, 1:27 am, RighteousRaven <[EMAIL PROTECTED]> wrote: > I got it working. The only change from Ken's suggestion is to also > setSpecificElementExtensionsto false. I had to upgrade to 1.5.1 > cause I couldn't figure it out on 1.5.0. > > Thanks for your help Ken, > > RR > > On Jun 13, 4:38 pm, Ken Snyder <[EMAIL PROTECTED]> wrote: > > > > > RighteousRaven wrote: > > > Debugging IE is a serious pain in the neck, and I am running into bugs > > > because IE doesnt allow extension of HTMLElement.prototype. I want to > > > temporarily prevent Prototype from extending HTMLElement.prototype in > > > Firefox so I can use firebug to burn all those nasty little buggers. > > > Does anyone have any ideas on how to do this? > > > > Thanks > > > RR > > > Never tried, but you could try messing with Prototype.BrowserFeatures. > > Let us know what you find; sounds interesting. > > > --Ken > > > In prototype.js 1.5.1 line 21 > > -- ElementExtensions: !!window.HTMLElement, > > ++ ElementExtensions: false, > > > and comment out lines 1819-1824 > > /*if (!Prototype.BrowserFeatures.ElementExtensions && > > document.createElement('div').__proto__) { > > window.HTMLElement = {}; > > window.HTMLElement.prototype = document.createElement('div').__proto__; > > Prototype.BrowserFeatures.ElementExtensions = true; > > > }*/- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
