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

2012-01-17 Thread Aryeh Gregor
On Fri, Jan 13, 2012 at 5:12 PM, Ojan Vafai o...@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

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

2012-01-17 Thread Ian Hickson
On Fri, 13 Jan 2012, Boris Zbarsky wrote: On 1/13/12 2:37 AM, Simon Pieters wrote: HTML uses this concept in lots of places, e.g. http://www.whatwg.org/specs/web-apps/current-work/#cookie-free-document-object A Document that has no browsing context. Ah, that's better than using

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

2012-01-17 Thread Boris Zbarsky
On 1/17/12 4:55 PM, Ian Hickson wrote: On Fri, 13 Jan 2012, Boris Zbarsky wrote: On 1/13/12 2:37 AM, Simon Pieters wrote: HTML uses this concept in lots of places, e.g. http://www.whatwg.org/specs/web-apps/current-work/#cookie-free-document-object A Document that has no browsing context.

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

2012-01-17 Thread Ian Hickson
On Tue, 17 Jan 2012, Boris Zbarsky wrote: On 1/17/12 4:55 PM, Ian Hickson wrote: On Fri, 13 Jan 2012, Boris Zbarsky wrote: On 1/13/12 2:37 AM, Simon Pieters wrote: HTML uses this concept in lots of places, e.g.

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

2012-01-13 Thread Boris Zbarsky
On 1/13/12 2:37 AM, Simon Pieters wrote: HTML uses this concept in lots of places, e.g. http://www.whatwg.org/specs/web-apps/current-work/#cookie-free-document-object A Document that has no browsing context. Ah, that's better than using defaultView (because behavior for defaultView on

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

2012-01-13 Thread Boris Zbarsky
On 1/13/12 12:18 PM, Aryeh Gregor wrote: Actually, defaultView is defined to return the Document's browsing context's WindowProxy object, if it has one, and null otherwise. Hmm. I guess the spec doesn't really define what happens to the association between a document and its browsing context

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

2012-01-13 Thread Aryeh Gregor
On Fri, Jan 13, 2012 at 12:34 PM, Boris Zbarsky bzbar...@mit.edu wrote: I would prefer a definition that doesn't involve defaultView, actually.  I don't expect browsers to converge defaultView behavior any time in the near or medium future, so the testability would be illusory: tests would just

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

2012-01-12 Thread Ojan Vafai
Can you do anything useful with a selection on a document that doesn't have a window? If so, the IE9 behavior makes sense. If not, I prefer the WebKit behavior. For phrasing it, could you define it in terms of document.defaultView? In other words that document.getSelection is just return

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

2012-01-12 Thread Simon Pieters
On Thu, 12 Jan 2012 16:58:58 +0100, Aryeh Gregor a...@aryeh.name wrote: What does document.implementation.createHTMLDocument().getSelection() return? * IE9 returns a Selection object unique to that document. * Firefox 12.0a1 and Opera Next 12.00 alpha return the same thing as