LiZunYuan / networkpx

Automatically exported from code.google.com/p/networkpx
0 stars 0 forks source link

Cannot perform select copy for read only <textarea> #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Construct a <textarea> on a web page with some text 
in it. The readonly attribute must be set. 
2. Click on the textarea to reveal the keyboard. Switch 
to ℏClipboard. 
3. Use "Select from here..." and "Select to here and 
copy" to copy a portion of text. 

What is the expected output? What do you see 
instead?
The selected range should be copied. 
In reality nothing was copied. 

Please use labels and text to provide additional 
information.
This bug breaks the Click to Text Field method to copy 
text in Safari. This can be worked-around by removing 
the a.readOnly=true; statement. 

Original issue reported on code.google.com by kennytm@gmail.com on 22 Jan 2009 at 10:41

GoogleCodeExporter commented 8 years ago
(Technical)
selectionRange reports (NSNotFound, 0). selectedDOMRange reports the correct 
value.

Cannot completely switch to selectedDOMRange either because in TextView it gives
wrong value. Use selectedDOMRange if selectionRange.location == NSNotFound.

Original comment by kennytm@gmail.com on 5 Feb 2009 at 10:14

GoogleCodeExporter commented 8 years ago
Fixed in r120.

Original comment by kennytm@gmail.com on 5 Feb 2009 at 10:50

GoogleCodeExporter commented 8 years ago

Original comment by kennytm@gmail.com on 5 Feb 2009 at 10:51