W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2014

Re: [whatwg] Document.activeElement should return the root element in non-HTML documents when no element has focus

From: Anne van Kesteren <annevk@annevk.nl>
Date: Sun, 2 Feb 2014 13:09:45 +0000
Message-ID: <CADnb78gkqGxVrgFze-wAiTJAmZ7w8f-==WNQXPzuaUcQMxT+og@mail.gmail.com>
To: Cameron McCormack <cam@mcc.id.au>
Cc: WHATWG <whatwg@whatwg.org>
On Sun, Feb 2, 2014 at 1:15 AM, Cameron McCormack <cam@mcc.id.au> wrote:
> Document.activeElement is currently defined to return the <body> element if
> there is not element with focus, or null if there's no <body> element.  I
> think it needs to return the root element when the document isn't an HTML
> document (like an SVG document).

You mean when there's no <body> element?

Received on Sunday, 2 February 2014 13:10:10 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:15 UTC