Bug Tracker

Opened 12 years ago

Closed 12 years ago

#6983 closed bug (invalid)

IE6 selector on same element ID in multiple forms selects first element

Reported by: jasontconnell Owned by:
Priority: Milestone: 1.4.3
Component: selector Version: 1.4.2
Keywords: ie6 duplicate element ID Cc:
Blocked by: Blocking:


See example html. Run in Chrome / Firefox / any IE.

Chrome alerts "test in form 2" then "test in form 1" which is expected

IE 6,7,8 alerts "undefined" then "test in form 1".

Sorry but our client has this issue, we changed the ID of one of them so it works, and I didn't see it reported.

Attachments (1)

jquery_ie6_bug.html (620 bytes) - added by jasontconnell 12 years ago.
js to reproduce IE6 selector bug

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by jasontconnell

Attachment: jquery_ie6_bug.html added

js to reproduce IE6 selector bug

comment:1 Changed 12 years ago by dmethvin

Resolution: invalid
Status: newclosed

That document is invalid (as you probably know), it has two elements with an id of "test". What an invalid document does is undefined.

Note: See TracTickets for help on using tickets.