Skip to main content

Bug Tracker

Side navigation

#4297 closed bug (invalid)

Opened March 05, 2009 09:12AM UTC

Closed October 29, 2010 05:14PM UTC

Last modified March 14, 2012 01:58PM UTC

[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

Attachments (0)
Change History (2)

Changed March 05, 2009 09:39AM UTC by ggerri comment:1

PS. Proposed solution of ticket #3275 using

$('input[readonly]')

works in IE6 but not in FF3 (3.0.6)

gg :-)

Changed October 29, 2010 05:14PM UTC by rwaldron comment:2

component: selectorattributes
priority: minorlow
resolution: → invalid
status: newclosed

readonly="readonly" is the valid usage.