Skip to main content

Bug Tracker

Side navigation

#7270 closed bug (duplicate)

Opened October 21, 2010 04:14PM UTC

Closed October 22, 2010 12:36AM UTC

Last modified October 22, 2010 12:36AM UTC

.find works wrong when searching by value attribute

Reported by: nv@graffity.biz Owned by:
Priority: blocker Milestone: 1.4.4
Component: selector Version: 1.4.3
Keywords: find attribute selector value regression Cc:
Blocked by: Blocking:
Description

html:

<form name="f" id="f">
	<input name="f1" type="text" value="" /> <br/>
	<input name="f2" type="text" value="" /> <br/>
	<input name="f3" type="text" value="" /> <br/>
</form>

js:

$('#f').find('input[value=""]').length

always returns 3 (even if all fields are filled)

in 1.4.2. everything is ok

Attachments (0)
Change History (7)

Changed October 21, 2010 04:25PM UTC by nv@graffity.biz comment:1

additional:

test case

http://jsfiddle.net/VNN2T/9/

brouser:

firefox 3.6.10 (Win)

Changed October 21, 2010 04:49PM UTC by SlexAxton comment:2

keywords: → find attribute selector value
milestone: 1.51.4.4
priority: undecidedhigh
status: newopen

This can be reproduced in several browsers. I also checked and made sure that this was a regression. It works as expected in 1.4.2

Changed October 21, 2010 04:54PM UTC by SlexAxton comment:3

description: html: \ <form name="f" id="f"> \ <input name="f1" type="text" value="" /> <br/> \ <input name="f2" type="text" value="" /> <br/> \ <input name="f3" type="text" value="" /> <br/> \ </form> \ \ js: \ $('#f').find('input[value=""]').length \ \ always returns 3 (even if all fields are filled) \ \ in 1.4.2. everything is ok \ \ html: \ \ {{{ \ <form name="f" id="f"> \ <input name="f1" type="text" value="" /> <br/> \ <input name="f2" type="text" value="" /> <br/> \ <input name="f3" type="text" value="" /> <br/> \ </form> \ }}} \ \ \ js: \ \ {{{ \ $('#f').find('input[value=""]').length \ }}} \ \ \ always returns 3 (even if all fields are filled) \ \ in 1.4.2. everything is ok \ \

Changed October 21, 2010 05:29PM UTC by SlexAxton comment:4

component: unfiledselector

Changed October 21, 2010 10:54PM UTC by snover comment:5

keywords: find attribute selector valuefind attribute selector value regression
priority: highblocker

Changed October 22, 2010 12:36AM UTC by snover comment:6

resolution: → duplicate
status: openclosed

Changed October 22, 2010 12:36AM UTC by snover comment:7

Duplicate of #7212.