Skip to content

Commit

Permalink
Remove "control group" concept from the focus model
Browse files Browse the repository at this point in the history
The control group concept existed to give special focus behavior to
<dialog> elements, treating them on par with Documents in terms of
allowing focus to shift inside of them. However, this was never
implemented in user agents.

This change removes the control group concept, instead using Document
directly. This allows some simplifications, e.g. because the first
focusable area of a non-empty Document is always the Document's
viewport.

The change uncovered some areas of the spec that were potentially wrong
or unclear when considering focus around documents. We will follow up on
that in whatwg#3675. But for now we keep
the same algorithms, just without <dialog>s.

Fixes whatwg#2171.
  • Loading branch information
Takayoshi Kochi authored and Alice Boxhall committed Jan 7, 2019
1 parent 386bcf3 commit c720309
Showing 1 changed file with 79 additions and 166 deletions.
Loading

0 comments on commit c720309

Please sign in to comment.