Unabled to set readonly attribute for HTMLInputElement via javascript

RESOLVED INVALID

Status

Rhino
Core
RESOLVED INVALID
13 years ago
13 years ago

People

(Reporter: Daniel O'Connor, Assigned: Igor Bukanov)

Tracking

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.8

While if you manually edit the attributes of the element via the DOM inspector
this behaves as expected; you cannot dynamically set this property.

The text box should be readonly when the first button is clicked.

Reproducible: Always
Steps to Reproduce:
1. Click button (do it its fun :)

Actual Results:  
HTMLInputElement is still editable

Expected Results:  
HTMLInputElement should not be still editable

See http://www.w3.org/TR/REC-html40/interact/forms.html#adef-readonly
(Reporter)

Comment 1

13 years ago
Created attachment 156444 [details]
Simple test case for dynamically setting readonly attribute

Comment 2

13 years ago
The attribute is readOnly (capital O).
Status: NEW → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.