[whatwg] Document.activeElement should return the root element in non-HTML documents when no element has focus
simonp at opera.com
Mon Feb 3 05:27:53 PST 2014
On Mon, 03 Feb 2014 11:29:42 +0100, Anne van Kesteren <annevk at annevk.nl>
> On Mon, Feb 3, 2014 at 3:34 AM, Cameron McCormack <cam at mcc.id.au> wrote:
>> When the document isn't an HTML document and when there is no element
>> focus. Browsers agree on returning null in an HTML document when there
>> no element with focus, no <body> element, but still a document element.
> If the root element is html in the HTML namespace,
> you have that behavior, and otherwise you return the root element
That sounds good to me.
More information about the whatwg