Hi all, I couldn't find anything about this on the list or the prototype docs or google, so please excuse me if somebody has addressed this somewhere.
I'm have some code like this: var toggleControllers = $A(form.select('*[show]')); Which works great in FF - it selects all the items on the page with a 'show="something"' attribute. But in IE it selects everything on the page. If i change the selector to *[anything-other-than-show], it works properly. I couldn't figure out why I was getting this behavior until i dumped the contents of element.readAttribute('show') for each result in toggleControllers. This gives me: function() { return __method.apply(null, [this].concat($A(arguments))); }; So, it appears that the [attr] selector in IE also selects elements with methods named 'attr'. Or maybe I'm interpreting it wrong and Prototype adds extended methods to elements as attributes, so maybe XPath is doing the right thing? Is there any way to avoid matching on methods like show() using the [attr] selector? Or do I need to just skip any where Object.isFunction(el.readAttribute('attr')) is true? Thanks, Byron --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---