Skip to main content

Bug Tracker

Side navigation

#5941 closed bug (invalid)

Opened January 26, 2010 03:46PM UTC

Closed June 14, 2010 12:35AM UTC

is() function bug

Reported by: ultimas Owned by:
Priority: major Milestone: 1.4.2
Component: unfiled Version: 1.4.1
Keywords: Cc:
Blocked by: Blocking:
Description

I have the following situation:

$('.btn,.btn-bullet',oContexto || document)

.filter('.btn')

.before(function(){

return '<div class="btn-wrapper"'+($(this).is(':visible')?'':' style="display:none"')+'><img src="'+BASE_URL+'public/img/btn_esq.gif" alt="" /></div>';

})

when the is() is executed I get this error:

elem.ownerDocument is null at Line 4529.

I'm on FF and it happens since the version 1.4

Btw, the problem that I related here #5908 persists

Attachments (2)
  • testcase V2.html (1.0 KB) - added by ultimas January 28, 2010 11:31AM UTC.
  • testcase.html (0.2 KB) - added by ultimas January 26, 2010 08:01PM UTC.
Change History (4)

Changed January 26, 2010 06:31PM UTC by neerajdotname comment:1

looks like formatting got mangled. Can you repost your html and jQuery code so that I could recreate the error.

Thanks

Changed January 26, 2010 08:00PM UTC by ultimas comment:2

I'm sorry but I can't reproduce this error anymore, I may have missed something on the first time. At least, I'll add the #5908 testcase.

Changed January 28, 2010 11:32AM UTC by ultimas comment:3

Ok, got the 2 errors...

Changed June 14, 2010 12:35AM UTC by dmethvin comment:4

resolution: → invalid
status: newclosed

$(true) isn't a valid way to construct a jQuery object.