[whatwg] Focus remains on Hidden Element

Kaustubh Atrawalkar kaustubh at motorola.com
Sat Oct 8 00:59:28 PDT 2011


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


More information about the whatwg mailing list