Skip to main content

Bug Tracker

Side navigation

#915 closed bug (wontfix)

Opened February 05, 2007 03:05AM UTC

Closed February 07, 2007 03:50PM UTC

Last modified June 20, 2007 02:48AM UTC

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

Reported by: lukas@dressyvagabond 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

Attachments (0)
Change History (1)

Changed February 07, 2007 03:50PM UTC by brandon comment:1

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