Skip to main content

Bug Tracker

Side navigation

#6092 closed bug (wontfix)

Opened February 13, 2010 12:14AM UTC

Closed February 13, 2010 12:21AM UTC

IE7/8 Bug with id based searching

Reported by: Cameron Owned by:
Priority: Milestone: 1.4.1
Component: core Version: 1.4.1
Keywords: Cc:
Blocked by: Blocking:
Description

<div id="abc">

<div id="ghi">

test 1

</div>

<div id="def">

test 2

</div>

</div>

<div id="jkl">

<div id="def">

test 3

</div>

</div>

<script language="JavaScript">

$('#abc #def').css("border","3px solid red");

$('#jkl #def').css("color", "green");

</script>

The 2nd line of the script will not function and returns a null. The last version that works properly is 1.2.6 I have tried all versions from 1.2.6 up through 1.4.1 and all are affected.

Attachments (0)
Change History (1)

Changed February 13, 2010 12:21AM UTC by john comment:1

resolution: → wontfix
status: newclosed

You really shouldn't be using multiple identical IDs in a document - I recommend using classnames instead as that will avoid any potential collisions. IDs are meant to be unique across the entire document.