Ticket #6662 (closed bug: invalid)
Selector doesn't seem to work in Chrome
| Reported by: | ross | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.4.3 |
| Component: | selector | Version: | 1.4.2 |
| Keywords: | Cc: | select, option, chrome | |
| Blocking: | Blocked by: |
Description (last modified by dmethvin) (diff)
This test case explains the problem: http://jsfiddle.net/n7GjN/
Essentially the second <option> should be changed.
This occurs in Google Chrome 5.0.375.70 (Official Build 48679) beta. (WebKit 533.4; V8 2.1.10.13).
In case the test case goes down:
<select name="label" id="label">
<option value="1" label="testLabel">testLabel</option>
<option value="newLabel" label="New Label">New Label</option>
</select>
$(function(){
$("#label option[value=newLabel]").html("Other Label");
});
Change History
comment:1 Changed 3 years ago by dmethvin
- Cc select, option, chrome added
- Description modified (diff)
comment:2 Changed 3 years ago by addyosmani
- Priority set to undecided
- Status changed from new to closed
- Resolution set to invalid
Invalid bug. I think what happened here is that you may have misconfigured JSFiddle. Setting the first option to 'onLoad' or 'onDomReady' you will see that in both Chrome and any other webkit browsers that your test case is working fine.
Please see here: http://jsfiddle.net/n7GjN/4/
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
