Bug 40342 - visbility:hidden element should accept text insertion
: visbility:hidden element should accept text insertion
Status: NEW
: WebKit
HTML Editing
: 528+ (Nightly build)
: All All
: P2 Normal
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2010-06-08 16:01 PST by
Modified: 2011-08-19 13:54 PST (History)


Attachments
test case (870 bytes, text/html)
2010-06-08 16:01 PST, Ojan Vafai
no flags Details


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2010-06-08 16:01:52 PST
Created an attachment (id=58194) [details]
test case

It's hard to write a testcase for this, but here's what I came up with. Basically, it's possible to have a focused, but visibility:hidden element. In Gecko, that element still receives key events and allows text input. In WebKit, it receives key events, but only does one text insertion. 

My opinion is that text insertion (include line-breaks) should work. If the element is receiving key events, it should also allow text insertion. I can also think of valid use-cases enabled by allowing text insertion in this case.

Related: bug 30116 and bug 40338.