malsup / blockui

jQuery BlockUI Plugin
http://jquery.malsup.com/block/
1.69k stars 506 forks source link

jQuery 1.4.4 / IE8 #14

Open wccrawford opened 13 years ago

wccrawford commented 13 years ago

Using jQuery 1.4.4 with blockUI 2.3.6 on IE8 gives:

$.blockUI() "'attributes' is null or not an object"

jQuery 1.4.2 works fine in the same situation.

yareckon commented 13 years ago

so does jquery 1.5

See this issue http://bugs.jquery.com/ticket/7397

sunco007 commented 13 years ago

IE9 RC shows me this error (translated)

The object does not accept the 'getElementsByTagName' property or method

Jquery 1.5

If fires on line 228 "var lyr1 = ($.browser.msie || opts.forceIframe)..."

If i use compatibility mode then it works, but not my other codes so i must use without compatibility mode

Works on FF 3.6.13

sunco007 commented 13 years ago

Well, I always love to look into the problems so I figure out and found a workarround

In my case I download the jquery-1.5.js and check the line with the error. It was 5461

"srcElements = elem.getElementsByTagName("*");"

To avoid more problems I only encapsulate the IF (need to see the code) with a Try Catch

Repeat, is a workarround and is fine for me