Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#4040 closed bug (wontfix)

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)

test.html (952 bytes) - added by colorwind.zhf 11 years ago.
test file
ie7test.JPG (88.2 KB) - added by colorwind.zhf 11 years ago.
test in ie7
ie6test.JPG (47.9 KB) - added by colorwind.zhf 11 years ago.
test in ie 6

Download all attachments as: .zip

Change History (8)

comment:1 Changed 11 years ago by dmethvin

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 11 years ago by colorwind.zhf

Attachment: test.html added

test file

Changed 11 years ago by colorwind.zhf

Attachment: ie7test.JPG added

test in ie7

Changed 11 years ago by colorwind.zhf

Attachment: ie6test.JPG added

test in ie 6

comment:2 Changed 11 years ago by dmethvin

Component: unfilledselector
Keywords: ie added
need: ReviewPatch
Owner: set to john

Confirmed, this also fails in IE8 RC1. Putting the code in a .ready() doesn't help either. Thanks for the test case!

comment:3 Changed 11 years ago by dmethvin

Keywords: document body added
Summary: Attribute Filters bug in IEAttribute Filters bug in IE (document vs. document.body)

Also reported in #4084.

comment:4 Changed 11 years ago by john

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

comment:5 in reply to:  4 Changed 11 years ago by colorwind.zhf

Thanks

Note: See TracTickets for help on using tickets.