Bug Tracker

Opened 14 years ago

Closed 12 years ago

Last modified 11 years ago

#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:


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 ggerri

PS. Proposed solution of ticket #3275 using


works in IE6 but not in FF3 (3.0.6)

gg :-)

comment:2 Changed 12 years ago by Rick Waldron

Component: selectorattributes
Priority: minorlow
Resolution: invalid
Status: newclosed

readonly="readonly" is the valid usage.

Note: See TracTickets for help on using tickets.