3.5.2. Focus

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 UTC