W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2010

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 09 Aug 2010 16:53:30 -0400
Message-ID: <4C606ACA.2050907@mit.edu>
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

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:59 UTC