Opened 12 years ago
Closed 12 years ago
#8251 closed bug (invalid)
Specifying Class ID
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | selector | Version: | 1.5 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Works in all browsers except for IE. When I have two divs:
<div class="class1" id="id"> ... </div> <div class="class2" id="id"> ... </div>
Internet Explorer does not recognize $(".class1#id).
Change History (3)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Component: | unfiled → selector |
---|---|
Owner: | set to [email protected]… |
Status: | new → pending |
Your example is invalid. id
attributes must be unique
comment:3 Changed 12 years ago by
Priority: | undecided → low |
---|---|
Resolution: | → invalid |
Status: | pending → closed |
As rwaldron already stated. This isn't a jQuery bug, but your HTML markup is invalid.
Check http://jsfiddle.net/jitter/Nq9CW/ and note how that works across browsers.
Note: See
TracTickets for help on using
tickets.
Please see http://jsfiddle.net/mavinm/hn8yL/9/ for an example and try it in IE.