Skip to main content

Bug Tracker

Side navigation

#9049 closed bug (duplicate)

Opened May 02, 2011 05:19PM UTC

Closed May 02, 2011 06:45PM UTC

Last modified May 02, 2011 06:45PM UTC

.filter is searching children in IE when html5 tags are used

Reported by: jessedpate Owned by:
Priority: high Milestone: 1.next
Component: core Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:
Description

In internet explorer, the .filter method is incorrectly iterating over second level child nodes when html5 elements are used. This behaves as expected in firefox, chrome, and safari.

$("<body> <section class='first'> <div class='second'></div></section> </body>").filter(function() {

console.log($(this).attr('class'));

return $(this).is('.first')

});

Expected result:

'First'

Actual Result:

'First'

"Second'

Attachments (0)
Change History (2)

Changed May 02, 2011 06:45PM UTC by timmywil comment:1

component: unfiledcore
priority: undecidedhigh
resolution: → duplicate
status: newclosed

Changed May 02, 2011 06:45PM UTC by timmywil comment:2

Duplicate of #6485.