From 9d2a8154c60ad489c779153a000d97a1f4ffbbd3 Mon Sep 17 00:00:00 2001
From: Takayoshi Kochi One focusable area in each Document
is designated the focused
area of the document. Which control is so designated changes over time, based on algorithms
- in this specification. If a Document
has no focusable area, it has no
- focused area.
Focusable areas in a Document
@@ -72969,16 +72968,11 @@ END:VCARD
When a focusable area is added to an empty Document
, it must be
- designated the focused area of the document.
Focus fixup rule: When the designated focused area of the document is removed from that Document
in some
way (e.g. it stops being a focusable area, it is removed from the DOM, it becomes
- expressly inert, etc.), and the Document
is still not empty: designate
- the Document
's viewport to be the new focused area of the
- document. If such a removal instead results in the Document
being empty, then
- there is simply no longer a focused area of the document.
Document
's viewport
+ to be the new focused area of the document.
For example, this might happen because an element is removed from its
Document
, or has a hidden
attribute added. It might
@@ -73175,30 +73169,23 @@ END:VCARD
target, are as follows:
Let candidate be the Document
of the top-level browsing
context.
If candidate is target, return true.
While true:
-If candidate is non-empty, and the - designated focused area of the document is a browsing context - container with a non-null nested browsing context, and the active - document of that browsing context container's nested browsing - context is target, then return true.
- -Otherwise, if candidate is non-empty, and the - designated focused area of the document is a browsing context - container with a non-null nested browsing context, then let - candidate be the active document of that browsing context - container's nested browsing context, and redo this step.
+If candidate is target, then return true.
Otherwise, return false.
+If the focused area of + candidate is a browsing context container with a non-null nested + browsing context, then set candidate to the active document of + that browsing context container's nested browsing context.
Otherwise, return false.
Let candidate be this Document
object.
If candidate is not empty, then set candidate to the designated - focused area of the document.
If candidate is a focusable area, then set candidate to - candidate's DOM anchor.
Let candidate be the DOM anchor of the focused area of this Document
object.
If candidate is not a Document
object, then return
candidate.