Skip to main content

Bug Tracker

Side navigation

#8554 closed bug (duplicate)

Opened March 17, 2011 08:17PM UTC

Closed March 30, 2011 06:30PM UTC

Last modified March 30, 2011 06:30PM UTC

Selecting on value when value is defined in HTML gives unexpected behavior

Reported by: will.murnane@gmail.com Owned by:
Priority: low Milestone: 1.next
Component: attributes Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:
Description

http://jsfiddle.net/JD46q/1/

Alter the text in the input box, then click the button. In Chrome/win32 10.0.648.127, I get a message like "Inputs with value ABC: 1; value of the only input: ABCD". Firefox 3.6.12 gives the same behavior. IE 8.0.6001.18702 gives the expected behavior: iff the input tag currently has a value of "ABC", it returns "Inputs with value ABC: 1; value of the only input: ABC"; otherwise, it returns "Inputs with value ABC: 0; value of the only input: $currentval".

This behavior may or may not be intentional, but it should at least match across browsers, and its functionality should be documented. Right now, it seems like the selector works on the value explicitly set in the HTML rather than on the current value.

Attachments (0)
Change History (2)

Changed March 30, 2011 06:30PM UTC by rwaldron comment:1

component: unfiledattributes
priority: undecidedlow
resolution: → duplicate
status: newclosed

Changed March 30, 2011 06:30PM UTC by rwaldron comment:2

Duplicate of #7814.