Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#8975 closed bug (worksforme)

Opera 11 and list selectors

Reported by: [email protected] 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 [email protected]

Sorry for inline code - link to jsfiddle: http://jsfiddle.net/yxGsT/ (affected only in opera)

comment:3 Changed 12 years ago by anonymous

But this variant working as expected: http://jsfiddle.net/yxGsT/2/

comment:4 Changed 12 years ago by Rick Waldron

Component: unfiledselector
Priority: undecidedlow
Resolution: worksforme
Status: newclosed

Closing per OP findings

comment:5 Changed 12 years ago by [email protected]

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.

Note: See TracTickets for help on using tickets.