Bug Tracker

Opened 10 years ago

Closed 9 years ago

#6554 closed bug (worksforme)

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

Change History (3)

comment:1 in reply to:  description Changed 10 years ago by azoapes

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

comment:2 Changed 10 years ago by azoapes

Why does :text[value="X"] and input[value="X"] produce different results? http://jsbin.com/apopi3/4/

comment:3 Changed 9 years ago by addyosmani

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/

Note: See TracTickets for help on using tickets.