Bug Tracker

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#793 closed bug (fixed)

1.1b .css() seems to require the element HAS to be in DOM

Reported by: [email protected] Owned by:
Priority: major Milestone: 1.1a
Component: core Version: 1.1a
Keywords: Cc:
Blocked by: Blocking:



	a {
		color: #555;
<script src="jquery.js" type="text/javascript" ></script>
<script src="jquery.testing.js" type="text/javascript" /></script>
	<a href="#" class="hello">Hello world.</a>


$.fn.testing = function()
	var me = $(this).hide('slow'); //works
	var bro = $('#nobody').hide('slow'); //should return null
	var sis = $('#nobody').css('color'); //throws exception

Change History (1)

comment:1 Changed 16 years ago by john

Resolution: fixed
Status: newclosed

I think this has been resolved, it's not throwing an exception. .css("color") returns undefined (which is right) and .hide("slow") doesn't do anything (which it shouldn't).

Note: See TracTickets for help on using tickets.