In my current project, I'm using the prototype window class found
here:
http://prototype-window.xilinus.com/download.html
I've been using it up to prototype 1.6.0.1 without any problems what
so ever. However, after the recent upgrade to 1.6.0.2, I've
encountered an error in internet explorer 6 & 7.
Before I continue, here is the test case:
http://sandbox.protopository.com/samples/multi_modal.html
Steps to replicate:
Click the link "Open a modal window".
Error Message: 'style' is null or not an object (line 2252
prototype.js)
Here are my findings thus far:
1. The problem occurs in function _checkIEOverlapping in file
window.js
2. For arguments sake, I tried switching the function to be more
compliant of new version with no luck:
this.element.insert({after: '<iframe id="' +
this.element.id +
'_iefix" '+
'style="display:none;position:absolute;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);"
' + 'src="javascript:false;" frameborder="0" scrolling="no"></
iframe>'});
3. This error does not occur in firefox (tested by removing the
browser check "if" statement in the checkIEOverlapping function).
4. When this error occurs in the getStyle function, the element
nodeType is 9.
I have contacted the author of this great class, but I'm a little
pushed for a deadline...
Thanks,
Ian