Skip to main content

Bug Tracker

Side navigation

#3794 closed bug (fixed)

Opened January 06, 2009 05:31PM UTC

Closed January 07, 2009 11:22PM UTC

Attribute filter does not work with a label element in IE 7 (jQuery 1.3 Beta 2)

Reported by: mtafelmayer Owned by: john
Priority: critical Milestone: 1.3
Component: selector Version: 1.2.6
Keywords: jQuery 1.3 Beta 2 Cc:
Blocked by: Blocking:
Description

The attribute filter does not work with a label element in IE 7 (jQuery 1.3 Beta 2).

The following works in FF 3, but not in IE 7:

$('label[for=username]');

But this works in IE 7:

$('label[lang=en]');

The HTML source:

<form method="post" action="">

<fieldset>

<label for="username" lang="en">Username</label>

<input id="username" type="text" name="username" value="" />

</fieldset>

</form>

This was also the case with the jQuery 1.3 Beta 1. But it worked with jQuery 1.2.6.

Attachments (0)
Change History (1)

Changed January 07, 2009 11:22PM UTC by john comment:1

resolution: → fixed
status: newclosed

Should be fixed now:

http://github.com/jeresig/sizzle/commit/c6127d0fc2ddbda13c1b00609190a67b54f23475

Will be pushing in to jQuery soon.