pein0119 / phpquery

Automatically exported from code.google.com/p/phpquery
0 stars 0 forks source link

$mySelectElement->val(0) select all the options #98

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. using the DOM <dom><select id="test"><option value="0">a</option><option
value="10">b</option><option value="20">c</option></select></dom>
2. the doing <php>$myDOM->find('select#test')->val(0);</php>
3.

What is the expected output? What do you see instead?
It should select only the first option, instead of that it select all the
options (giving me the dom <dom><select id="test"><option value="0"
selected="selected">a</option><option value="10"
selected="selected">b</option><option value="20"
selected="selected">c</option></select></dom>!

What version of the product are you using? On what operating system?
The latest dev release

Please provide any additional information below.

Original issue reported on code.google.com by nicolas....@gmail.com on 28 Jan 2009 at 10:21

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Fixed in r352.

Original comment by tobiasz....@gmail.com on 28 Jan 2009 at 10:49

GoogleCodeExporter commented 8 years ago
Taht's OK for me too ^^ Thanks :).

Original comment by nicolas....@gmail.com on 28 Jan 2009 at 10:55