Input element that has focus can't get readonly

Not reproducible Issue #1294999

Details

Created
Jan 6, 2015
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

JonHoer Repro Steps:

==============

 

  1. Open attached file, test2.htm

  2. Click in the input box

  3. Wait three seconds for the textbox to be made readonly (you’ll see the “X” action part disappear, and you’ll see a message added to the page)

  4. Try to type

 

Expected cannot type

Actual: can still type

 

 

Greg’s repro:

URL:

Repro Steps:

==============

http://jsfiddle.net/0n6morma/3/](http://jsfiddle.[http://jsfiddle.net/0n6morma/3/](http://jsfiddle.net/0n6morma/3/)

 

Focus an input by calling its focus() method. Then make it readonly via setAttribute.

Live demo: http://jsfiddle.net/0n6morma/1/ http://dojo.telerik.com/@korchev/ACICU

Minimal reproduction:

<input id="input">

<script>

var input = document.getElementById(“input”);

input.focus();

input.setAttribute("readonly", “readonly”);

</script>

Expected Results:

==============

The expected behavior is that the input element stays readonly and the user can’t type in it. This problem seems to exist in all versions of Internet Explorer (6-11).

Actual Results:

==============

Dev Channel specific:

================

No

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Tony S.”

      Changed Assigned To to “Sermet I.”

      Changed Assigned To to “Rossen A.”

      Changed Steps to Reproduce

      Changed Assigned To from “Rossen A.” to “Jonathan H.”

      Changed Status to “Confirmed”

      Changed Steps to Reproduce

      Changed Steps to Reproduce

      Changed Steps to Reproduce

      Changed Assigned To from “Jonathan H.” to “IE F.”

      Changed Status from “Confirmed” to “Won’t fix”

      Changed Status from “Won’t fix” to “Not reproducible”

    You need to sign in to your Microsoft account to add a comment.

    Sign in