Bug Tracker

Ticket #4297 (closed bug: invalid)

Opened 5 years ago

Last modified 2 years ago

[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

comment:1 Changed 5 years ago by ggerri

PS. Proposed solution of ticket #3275 using

$('input[readonly]')

works in IE6 but not in FF3 (3.0.6)

gg :-)

comment:2 Changed 4 years ago by rwaldron

  • Priority changed from minor to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from selector to attributes

readonly="readonly" is the valid usage.

Note: See TracTickets for help on using tickets.