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

[whatwg] HTML5 Feedback: Section 3.5.2 Focus

From: Brad Fults <bfults@gmail.com>
Date: Mon, 8 Oct 2007 21:58:35 -0700
Message-ID: <1959130b0710082158s1e6ec7dqe89a42eee4a07965@mail.gmail.com>
A few things in Section 3.5.2:

"There is always an element focused; in the absence of other elements
being focused, the document's root element is it." [1]

This sentence is awkwardly worded and as far as I can tell,
"document's root element" is referenced but not defined anywhere. It
might be better as something like:

"There is always a single element with focus. If no other element in
the document has focus, focus is given to the document's root element
-- in this case the body element."

That is assuming, of course, that the body element is indeed the
element that is to receive focus when no other element is focused. I'm
not thrilled with this wording either, but it is an incremental
improvement in comprehensibility.

----

"If no element specifically has focus, this must return the body element." [2]

This sentence references "the body element" (with proper linking to
its definition). Is the intention here to distinguish "the body
element" from "the document's root element" mentioned in the previous
quote? If so, it's not clear what the distinction is or why it is
present. If not, these two sentences should use the same terminology.


[1] - http://www.whatwg.org/specs/web-apps/current-work/#focus
[2] - http://www.whatwg.org/specs/web-apps/current-work/#activeelement


-- 
Brad Fults
Received on Monday, 8 October 2007 21:58:35 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:37 UTC