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)
Change History (5)
Changed February 04, 2009 12:20AM UTC by comment:1
Changed February 05, 2009 11:53PM UTC by comment:2
component: | unfilled → selector |
---|---|
keywords: | → ie |
need: | Review → Patch |
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 comment:3
keywords: | ie → ie document body |
---|---|
summary: | Attribute Filters bug in IE → Attribute Filters bug in IE (document vs. document.body) |
Also reported in #4084.
Changed February 10, 2009 03:28PM UTC by comment:4
resolution: | → wontfix |
---|---|
status: | new → closed |
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 comment:5
Thanks
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?