W3C home > Mailing lists > Public > public-html@w3.org > July 2007

3.5.2. Focus

From: Marcin Hanclik <Marcin.Hanclik@access-company.com>
Date: Tue, 31 Jul 2007 12:33:30 +0200
Message-ID: <78BEBE845AB46D4789206C4DBB3A969C6E1773@obeex01.obe.access-company.com>
To: <public-html@w3.org>


Inconsistency:
3.5.2 [1] reads:
"There is always an element focused; in the absence of other elements
being focused, the document's root element is it."
Root element is html element as per 3.6.1 [2].

But
3.5.2.1 [3] reads:
"The activeElement  attribute must return the element in the document
that has focus. If no element specifically has focus, this must return
the body element."

Contradiction: which element is focused if none has explicit focus?

I suggest removal of the following sentence:
"If no element specifically has focus, this must return the body
element."
It would result in html element being returned by activeElement.

.Marcin

[1] 3.5.2 http://dev.w3.org/html5/spec/Overview.html#focus
[2] 3.6.1 http://dev.w3.org/html5/spec/Overview.html#the-html
[3] 3.5.2.1 http://dev.w3.org/html5/spec/Overview.html#focus-management
Received on Tuesday, 31 July 2007 10:33:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:03 GMT