[whatwg] getSelection() in a display:none iframe
Ojan Vafai
ojan at chromium.org
Mon Aug 9 13:23:42 PDT 2010
http://www.whatwg.org/specs/web-apps/current-work/#dom-getselection
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.
Relevant bugs:
https://bugzilla.mozilla.org/show_bug.cgi?id=585229
https://bugs.webkit.org/show_bug.cgi?id=43655
Ojan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100809/e54cfaad/attachment-0002.htm>
More information about the whatwg
mailing list