Skip to main content

Bug Tracker

Side navigation

#7911 closed bug (invalid)

Opened January 06, 2011 01:59PM UTC

Closed January 21, 2011 07:58AM UTC

Last modified June 11, 2012 03:47AM UTC

Jquery uses DOM before it's fully loaded [IE8 , opacity, cssHooks , style.filter]

Reported by: Owned by:
Priority: undecided Milestone:
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:

In IE8 Jquery tries to get the opacity of an element before the DOM is fully loaded, it seems.

Thus resulting in an error : "style.filter" is empty or not an object (see screenshot, which is in Dutch, sorry about that)

code snippet where it crashes (from jquery-1.4.4.js) :

if ( ! ) {
	jQuery.cssHooks.opacity = {
		get: function( elem, computed ) {
			// IE uses filters for opacity
			return ropacity.test((computed && elem.currentStyle ? elem.currentStyle.filter : || "") ?
				(parseFloat(RegExp.$1) / 100) + "" :
				computed ? "1" : "";

On .


Attachments (0)
Change History (4)

Changed January 06, 2011 02:05PM UTC by anonymous comment:1

Changed January 06, 2011 02:53PM UTC by addyosmani comment:2

owner: →
status: newpending

Thanks for submitting a ticket on this bug. Could you please also provide us with a complete example of it on [jsFiddle] so that our team can fully evaluate the issue you're describing?

Changed January 21, 2011 07:58AM UTC by trac-o-bot comment:3

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Changed June 11, 2012 03:47AM UTC by comment:4

I come to the same problem, how do i deal with it?