W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2011

[whatwg] Focus remains on Hidden Element

From: Kaustubh Atrawalkar <kaustubh@motorola.com>
Date: Sat, 8 Oct 2011 13:29:28 +0530
Message-ID: <CANw-Mg-1MvaacP3FfDheJnzHZC6UWFSMeSy_KZkMPJdEH9gvfw@mail.gmail.com>

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 (
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:37 UTC