[whatwg] getSelection() in a display:none iframe
Boris Zbarsky
bzbarsky at MIT.EDU
Mon Aug 9 13:53:30 PDT 2010
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
More information about the whatwg
mailing list