CARVIEW |
Select Language
HTTP/2 200
date: Wed, 08 Oct 2025 11:28:23 GMT
content-type: text/html
content-encoding: gzip
last-modified: Thu, 13 Jul 2023 18:04:48 GMT
cache-control: max-age=2592000, public
expires: Thu, 06 Nov 2025 15:56:55 GMT
vary: Accept-Encoding
access-control-allow-origin: *
x-request-id: 98ae975eaeae7bb0
strict-transport-security: max-age=15552015; preload
x-frame-options: deny
x-xss-protection: 1; mode=block
cf-cache-status: HIT
set-cookie: __cf_bm=rV6jvmo3a7AIZEQUQjFsZQA.KOneW9APFPN5OjEIhd8-1759922903-1.0.1.1-1wVe28mDeaXkUWtc6PPoQYIkFUMhb.uMGPYrNdpN0fS7jdPNuZFSHSTEJvYwF0WG3pmuo5ipKiSa3WAj.OfB0LL5MHqKRRFnV6ZOCU9Zr_4; path=/; expires=Wed, 08-Oct-25 11:58:23 GMT; domain=.w3.org; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 98b54b5c5c4aaf3d-BLR
alt-svc: h3=":443"; ma=86400
Selection of a document that doesn't have a window from Aryeh Gregor on 2012-01-12 (public-webapps@w3.org from January to March 2012)
Selection of a document that doesn't have a window
- From: Aryeh Gregor <ayg@aryeh.name>
- Date: Thu, 12 Jan 2012 10:58:58 -0500
- To: Ryosuke Niwa <rniwa@webkit.org>, Ehsan Akhgari <ehsan@mozilla.com>, Simon Pieters <simonp@opera.com>, W3C WebApps WG <public-webapps@w3.org>
- Message-ID: <CAKA+AxnsZZ_4JqhKo0EVxASRa0OTPmx8+6KN3UKZ+ZeysGKg7w@mail.gmail.com>
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 document.getSelection(). * Chrome 17 dev returns null. I prefer IE's behavior just for the sake of simplicity. If we go with Gecko/WebKit/Opera, we have to decide how to identify which documents get their own selections and which don't. The definition should probably be something like "documents that are returned by the .document property of some window", but I have no idea if that's a sane way to phrase it. So should the spec follow IE? If not, what definition should we use to determine which documents get selections?
Received on Thursday, 12 January 2012 16:28:20 UTC