Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#7911 closed bug (invalid)

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

Reported by: [email protected] Owned by: [email protected]
Priority: undecided Milestone: 1.next
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.support.opacity ) {
	jQuery.cssHooks.opacity = {
		get: function( elem, computed ) {
			// IE uses filters for opacity
			return ropacity.test((computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "") ?
				(parseFloat(RegExp.$1) / 100) + "" :
				computed ? "1" : "";

On elem.style.filter .

Change History (4)

comment:1 Changed 12 years ago by anonymous


comment:2 Changed 12 years ago by addyosmani

Owner: set to [email protected]
Status: newpending

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

comment:3 Changed 12 years ago by trac-o-bot

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!

comment:4 Changed 11 years ago by [email protected]

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

Note: See TracTickets for help on using tickets.