Skip to main content

Bug Tracker

Side navigation

#4040 closed bug (wontfix)

Opened February 02, 2009 09:57AM UTC

Closed February 10, 2009 03:28PM UTC

Last modified February 11, 2009 09:42AM UTC

Attribute Filters bug in IE (document vs. document.body)

Reported by: colorwind.zhf Owned by: john
Priority: major Milestone: 1.3.2
Component: selector Version: 1.3.1
Keywords: ie document body Cc:
Blocked by: Blocking:
Description

<div class="cs1" name="node1"></div>

The code: $(".cs1[name='node1']") can not match this node in IE.

Attachments (3)
  • ie6test.JPG (47.9 KB) - added by colorwind.zhf February 05, 2009 05:55AM UTC.

    test in ie 6

  • ie7test.JPG (88.2 KB) - added by colorwind.zhf February 05, 2009 05:54AM UTC.

    test in ie7

  • test.html (0.9 KB) - added by colorwind.zhf February 05, 2009 05:40AM UTC.

    test file

Change History (5)

Changed February 04, 2009 12:20AM UTC by dmethvin comment:1

I tried creating a test case but it worked for me. What version of IE and what doctype? Can you provide a complete test case?

Changed February 05, 2009 11:53PM UTC by dmethvin comment:2

component: unfilledselector
keywords: → ie
need: ReviewPatch
owner: → john

Confirmed, this also fails in IE8 RC1. Putting the code in a

.ready()
doesn't help either. Thanks for the test case!

Changed February 07, 2009 02:55AM UTC by dmethvin comment:3

keywords: ieie document body
summary: Attribute Filters bug in IEAttribute Filters bug in IE (document vs. document.body)

Also reported in #4084.

Changed February 10, 2009 03:28PM UTC by john comment:4

resolution: → wontfix
status: newclosed

Actually, this isn't related to #4084 - this has to do with using getElementsByName.

The problem here is that you have an invalid attribute on an element (name attributes aren't valid on divs). Thus IE is having trouble finding them - I recommend using a different attribute instead (maybe a class - or an ID?).

Changed February 11, 2009 09:42AM UTC by colorwind.zhf comment:5

Thanks