[whatwg] getSelection() in a display:none iframe

On 8/9/10 4:23 PM, Ojan Vafai wrote:
> On the one hand, the Gecko behavior makes sense because you can't have a
> selection in a display:none frame, so the methods to set a selection
> would fail. On the other hand, you can get into a similar situation by
> getting a Selection and then making the iframe display:none, so that
> case needs to be dealt with either way.

Note that in Gecko the selection which has outlived its presentation is 
totally unusable.  Even if the document gets a new presentation the 
selection is not attached to that presentation.

-Boris

Received on Monday, 9 August 2010 13:53:30 UTC