[whatwg] Focus remains on Hidden Element

Hi,

In a form element, If a form input element has a focus and its then made
hidden using style property display:none the focus still remains on the
hidden element.
According to specs (
http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#focus-management-
4th point) hidden input elements can not be focused. But there is
still inconstancy in the browsers.

Test case - http://xirc.chez.com/ie9-focus-display-none.html

Rationale -
Chrome 14 - Focus remains
Firefox - Focus is removed
MSIE 8 - Focus remains (Need to check on 9)
Opera - Focus is removed

Can we streamline it for consistency? Any comments would be great.

Thanks & Regards
--
Kaustubh Atrawalkar

Received on Saturday, 8 October 2011 00:59:28 UTC