[whatwg] Fixing activeElement spec to match IE
arv at chromium.org
Mon May 16 15:39:36 PDT 2011
Currently, the spec says:
"The activeElement attribute on HTMLDocument objects must return the
element in the document that is focused. If no element in the Document
is focused, this must return the body element."
This does not fully match IE, or is underspecified. If the document
has frames in it and a frame contains the focused element, the
activeElement of the HTMLDocument should return the frame element
which contains the focus.
I have a patch for WebKit  to match IE's behavior as described above.
More information about the whatwg