Hi All,

Under certain circumstances in Internet Explorer, accessing an
element's offsetParent property throws an 'Unspecified Error'
exception. Apparently this problem only exists if you try to access
the property after manipulating the DOM tree. (And only in Internet
Explorer)
I came across this when implementing Draggable on a node that written
using innerHTML.
I found this explaination:
http://weblogs.asp.net/rajbk/archive/2006/11/29/ie-6-7-unspecified-error-when-accessing-offsetparent-javascript.aspx

So what's the best way to work around this?
I looked at the Mochikit code and offsetParent is used in a whole
bunch of places.
One solution is to replace all those property accessors with a
function (getOffsetParent) which has a try\catch block to handle the
error.
But thats a lot of work.
Is it possible to override the DOM node's offsetParent property (via
prototype) to get the needed behavior?

Is this something that needs to be addressed in the core library (in
which case, would you accept a patch that solves it?)
or is this something that developers are on their own to fix?


Thanks,
Haran


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to