Bug Tracker

Modify

Ticket #915 (closed bug: wontfix)

Opened 6 years ago

Last modified 6 years ago

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

Reported by: lukas@… Owned by:
Priority: major Milestone:
Component: core Version:
Keywords: Internet Explorer, ids Cc:
Blocking: Blocked by:

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

comment:1 Changed 6 years ago by brandon

  • Status changed from new to closed
  • Resolution set to wontfix

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])');

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.