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 comment:1
Changed October 21, 2010 04:49PM UTC by comment:2
keywords: | → find attribute selector value |
---|---|
milestone: | 1.5 → 1.4.4 |
priority: | undecided → high |
status: | new → open |
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 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 comment:4
component: | unfiled → selector |
---|
Changed October 21, 2010 10:54PM UTC by comment:5
keywords: | find attribute selector value → find attribute selector value regression |
---|---|
priority: | high → blocker |
Changed October 22, 2010 12:36AM UTC by comment:6
resolution: | → duplicate |
---|---|
status: | open → closed |
additional:
test case
http://jsfiddle.net/VNN2T/9/
brouser:
firefox 3.6.10 (Win)