Re: Selection of a document that doesn't have a window

On Fri, Jan 13, 2012 at 5:12 PM, Ojan Vafai <ojan@chromium.org> wrote:
> We could define it in terms of defaultView (or browsing context) and put our
> effort into getting interoperability on defaultView?

This is what I've done for now:

http://dvcs.w3.org/hg/editing/rev/4dc4d65cc87e

At least behavior is pretty clear in the easy case of
document.implemention.createHTMLDocument("") or such.  In more
complicated cases, we probably want the same behavior as defaultView
anyway, so if we're going to define such behavior precisely we may as
well do it for defaultView instead of getSelection().

I've also filed a Mozilla bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=718741

Received on Tuesday, 17 January 2012 18:53:36 UTC