Bug Tracker

Modify

Ticket #6554 (closed bug: worksforme)

Opened 3 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

Description

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

Change History

comment:1 in reply to: ↑ description Changed 3 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 3 years ago by azoapes

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

comment:3 Changed 3 years ago by addyosmani

  • Priority set to undecided
  • Status changed from new to closed
  • Resolution set to worksforme

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/

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.