Skip to main content

Bug Tracker

Side navigation

#6554 closed bug (worksforme)

Opened May 10, 2010 03:27PM UTC

Closed October 03, 2010 01:25AM UTC

Selection of input value doesn't work in all browsers

Reported by: azoapes Owned by:
Priority: undecided Milestone: 1.4.3
Component: selector Version: 1.4.2
Keywords: input value Cc:
Blocked by: Blocking:
Description

Here's a full example of the issue.

Works in IE 8. Doesn't in Firefox.

http://jsbin.com/apopi3

Attachments (0)
Change History (3)

Changed May 10, 2010 03:32PM UTC by azoapes comment:1

Here's a full example of the issue. Works in IE 8. Doesn't in Firefox. http://jsbin.com/apopi3/3

Changed May 17, 2010 12:38PM UTC by azoapes comment:2

Why does :text[value="X"] and input[value="X"] produce different results?

http://jsbin.com/apopi3/4/

Changed October 03, 2010 01:25AM UTC by addyosmani comment:3

priority: → undecided
resolution: → worksforme
status: newclosed

I believe there may have been some issue with the way you originally coded up your test case.

I've simplified it down to the following which evaluates whether the input was correctly selected using either

input[value='X']

:text[value="X"]

In FireFox this is correctly outputting a length of 1 for each of the tests. The same is observed in Google Chrome and Safari.

Live Test Example: http://jsfiddle.net/tn4rz/3/