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

Cameron McCormack cam at mcc.id.au
Sat Feb 1 17:15:01 PST 2014


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).


More information about the whatwg mailing list