#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: | |
Blocked by: | Blocking: |
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 (2)
comment:1 Changed 14 years ago by
comment:2 Changed 12 years ago by
Component: | selector → attributes |
---|---|
Priority: | minor → low |
Resolution: | → invalid |
Status: | new → closed |
readonly="readonly" is the valid usage.
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 :-)