Modify ↓
Ticket #4297 (closed bug: invalid)
[readonly="true"] for IE6 / [readonly=""] for Firefox
| Reported by: | ggerri | Owned by: | john |
|---|---|---|---|
| Priority: | low | Milestone: | 1.4 |
| Component: | attributes | Version: | 1.3.2 |
| Keywords: | readonly | Cc: | |
| Blocking: | Blocked by: |
Description
Hi guys
If you set some Input-TD's of a table to readonly with
$('tr>td:nth-child(2n) :text').attr('readonly', 'readonly')
jQuery 1.3.2 writes in the DOM
FF: <input id="A1" type="text" value="90" readonly=""/> IE6: <INPUT id="A1" readOnly=True jQuery1236243200750=2>
Therefore, when trying to retrieve with attribute selector, you have to use [readonly=""] in Firefox and [readonly="true"] in IE6...
Would be nice if [readonly="true"] would work in both browsers.
Thanks guys and keep up your supercool&great work! Gerald
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

PS. Proposed solution of ticket #3275 using
$('input[readonly]')
works in IE6 but not in FF3 (3.0.6)
gg :-)