Bug Tracker

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#915 closed bug (wontfix)

$('#register') matches more elements than only id's set to register in IE6

Reported by: [email protected] Owned by:
Priority: major Milestone:
Component: core Version:
Keywords: Internet Explorer, ids Cc:
Blocked by: Blocking:

Description

$('#register') which should only match element(s) with the id set to register, seems to mach tags with name set to register as well in IE6.

Example: <a name="register"></a> ... <form id="register" action="test.html"> ... </form>

Match: $('#register').size() == 1 matched element is the anchor

Change History (1)

comment:1 Changed 15 years ago by brandon

Resolution: wontfix
Status: newclosed

This is a well known issue in IE and the s fix for this in the core would cause severe performance issues.

If your code *must* have both a name and an id of the same value on different elements you could work around it by using the :not expression.

$('#register:not([@name=register])');

Note: See TracTickets for help on using tickets.