Skip to main content

Bug Tracker

Side navigation

#793 closed bug (fixed)

Opened January 12, 2007 06:57PM UTC

Closed January 13, 2007 08:45PM UTC

Last modified June 19, 2007 06:59AM UTC

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

Reported by: jonathanfreeman@yaho Owned by:
Priority: major Milestone: 1.1a
Component: core Version: 1.1a
Keywords: Cc:
Blocked by: Blocking:
Description

HTML:

<html>
<style>
	a {
		color: #555;
	}
</style>
<script src="jquery.js" type="text/javascript" ></script>
<script src="jquery.testing.js" type="text/javascript" /></script>
<script>
$(document).ready(function() 
{
	$("a.hello").testing();
	
});
</script>
<body>
	<a href="#" class="hello">Hello world.</a>
</body>
</html>

Lib:

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

Changed January 13, 2007 08:45PM UTC by john comment:1

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).