Skip to main content

Bug Tracker

Side navigation

#8975 closed bug (worksforme)

Opened April 26, 2011 06:50AM UTC

Closed April 27, 2011 02:33AM UTC

Last modified April 27, 2011 06:20AM UTC

Opera 11 and list selectors

Reported by: miracle+jquery@rpz.name 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 -->

Attachments (0)
Change History (6)

Changed April 26, 2011 06:52AM UTC by miracle+jquery@rpz.name comment:1

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

Changed April 26, 2011 07:00AM UTC by miracle+jquery@rpz.name comment:2

Changed April 26, 2011 07:07AM UTC by anonymous comment:3

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

Changed April 27, 2011 02:33AM UTC by rwaldron comment:4

component: unfiledselector
priority: undecidedlow
resolution: → worksforme
status: newclosed

Closing per OP findings

Changed April 27, 2011 04:39AM UTC by miracle+jquery@rpz.name comment:5

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.

Changed April 27, 2011 06:20AM UTC by miracle+jquery@rpz.name comment:6