Hi, Can you post a minimalist, complete failing test case? I'm not immediately seeing how it would ascend all the way to document unless the element you're using isn't in the body, which would be curious. getOffsetParent stops as of document.body and doesn't try to go further up than that.
Thanks, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Aug 11, 4:29 pm, fda <[email protected]> wrote: > Hi, we are using Prototype 1.6.0.3 in combination with Gabriel Lanzani > select.js. When loading the page in (any) IE browser, the first time > the select box is clicked it will not open and a js error will > occure. > > As fare as i understand at some point after the click the Prototype > getOffsteParent is called with the actual Document element as > argument. Wich later then will create an exception in element.getStyle > because the document node dose not have a style property. Im not sure > if it is Prototype's job to check whether the argument will create an > exception. I patched the getOffsetParent checking whether the argument > is not document (element !== document). > > I know that altering the library files is not Best Practice, maybe the > problem could be fixed in future within Prototype, that if it is his > responsibility. > > greetings > FDA --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
