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

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

From: Cameron McCormack <cam@mcc.id.au>
Date: Sat, 01 Feb 2014 17:15:01 -0800
Message-ID: <52ED9C15.10903@mcc.id.au>
To: whatwg@whatwg.org
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).
Received on Sunday, 2 February 2014 01:15:37 UTC

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