Hidden textarea

Confirmed Issue #11691403 • Assigned to Grisha L.


Turner H.
Apr 17, 2017
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

In IE11 and Edge, a textarea that is display: none (or within such an element) can still receive keypresses even though it’s not visible:

  • See https://jsbin.com/xodajiv/212/edit?html,css,js,output
  • Focus into the textarea
  • Click another tab in the same browser window
  • Click back to the JSBin
  • The textarea should now be hidden
  • Without clicking anywhere, type some text
  • Click the Show button
  • The textarea has the text you typed, even though you couldn’t see the text as you were typing

I tried adding a readonly property in the focusout handler; no change. It was readonly when shown, but still got the text (see this bin).

This is presenting a potential safety issue, in that a user could potentially enter text where they are not aware they are entering it.


0 attachments

    Comments and activity

    • Changed Steps to Reproduce

      Changed Steps to Reproduce

      Changed Steps to Reproduce

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “Grisha L.”

      Changed Status to “Confirmed”

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

    Sign in