#8975 closed bug (worksforme)
Opera 11 and list selectors
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | selector | Version: | 1.5.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
<div id="form">
<select name="AAA"><option value="111" selected>111<option value="222">222</select> <select name="BBB"><option value="111" >111<option value="222" selected>222</select> <input type="text" name="XXX" value="foo"/> <input type="text" name="YYY" value="bar" /> <input type="text" name="ZZZ" value="baz" /> <input type="checkbox" name="DDD" value="baz" checked/> <select name="CCC"><option value="111" >111<option value="222">222<option value="333" selected>333</select>
</div> <table> <tr><th>expect</th><th>result</th></tr> <tr><td><textarea id="expect" style="width: 100px; height: 100px"></textarea></td><td><textarea id="resultset" style="width: 100px; height: 100px"></textarea></td></tr> <tr><td colspan="2"><input type="text" id="eq" style="width: 200px"></td></tr> </table>
<script src="http://code.jquery.com/jquery-1.5.2.js"></script> <script> (function($) {
var $resultset = [], $expect = "AAA=111\r\nBBB=222\r\nXXX=foo\r\nYYY=bar\r\nZZZ=baz\r\nCCC=333"; $('#form').find('select,:text').each(function(){
$resultset.push (this.name + '=' + this.value);
}); var $result = $resultset.join("\r\n"); $('#resultset').val($result); $('#expect').val($expect); $('#eq').val($result == $expect ? 'equal' : 'not equal');
})(jQuery); </script>
<!-- in Opera 11 we have only "select" without :text -->
Change History (6)
comment:1 Changed 12 years ago by
comment:3 Changed 12 years ago by
But this variant working as expected: http://jsfiddle.net/yxGsT/2/
comment:4 Changed 12 years ago by
Component: | unfiled → selector |
---|---|
Priority: | undecided → low |
Resolution: | → worksforme |
Status: | new → closed |
Closing per OP findings
comment:5 Changed 12 years ago by
Work for you, but not works for me (and my clients), see screenshot: http://img843.imageshack.us/img843/5933/operabug8975.png Thanks for reopening this bug.
comment:6 Changed 12 years ago by
Same bug in win version Opera: http://my.jetscreenshot.com/demo/m_20110427-diho-135kb.jpg
Sorry for inline code - link to jsfiddle: http://jsfiddle.net/yxGsT/ (affected only in opera)