[whatwg] getSelection() in a display:none iframe
ojan at chromium.org
Mon Aug 9 13:23:42 PDT 2010
Gecko returns null for a display:none iframe, but returns an empty Selection
object for a visible iframe with no selection. As best I can tell, WebKit
and Opera return a selection in both cases. I don't feel strongly about
which behavior is correct, but the spec should deal with this case.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the whatwg