Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the concept of "dialog group" #3566

Merged
merged 3 commits into from
Mar 15, 2018

Conversation

TakayoshiKochi
Copy link
Member

@TakayoshiKochi TakayoshiKochi commented Mar 14, 2018

This change mechanically removes the concept of "dialog group", its definition, and its references.

Originally "dialog group" seems to define the focusing behavior of nested dialogs in recursive
manner, but actual implementation doesn't follow the definition and this is not necessary.

This is a step forward to remove "control groups" completely to address #2171


/interaction.html ( diff )

source Outdated
group</span>, if any, or else the first <code>dialog</code> in the <span>dialog group</span> regardless of
<span data-x="inert">inertness</span>, must be designated the <span>focused dialog of the dialog
group</span>.</p>

<p><dfn>Focus fixup rule one</dfn>: When the designated <span data-x="focused area of the control
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this now become "focus fixup rule"? Might be good to look at blame. (Also a little unsure who can review this since nobody is very familiar with focus handling.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made it "focus fixup rule".

I'll check the blame history in more detail, but it seems it dates back in Hixie's days,
and seems hard to track down.

It used to have 3 rules, but now only one.
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, only found one extra bit of work. Really looking forward to this section getting simplified.

source Outdated
designated <span>focused dialog of the dialog group</span>, otherwise, it is the <span>primary
control group</span> of <var>X</var>'s <span>dialog group</span>'s designated
<span>focused dialog of the dialog group</span>.</p>
<p>The <dfn>primary control group</dfn> of a <span>control group owner object</span> <var>X</var> is the <span>control group</span> of <var>X</var>.</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove the concept of "primary control group" entirely and just use "control group" everywhere now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"primary control group" is only used in the table of sequential navigation search algorithm twice, so your suggestion looks working well.

@domenic domenic added the removal/deprecation Removing or deprecating a feature label Mar 15, 2018
@domenic domenic merged commit a4bb346 into whatwg:master Mar 15, 2018
@annevk
Copy link
Member

annevk commented Mar 15, 2018

FWIW, f96b199 introduced the focus fixup rules and it started out with all of them. But that rewrite seemed to want to address a lot of things and it's unclear whether it's all supported by tests. I guess that's the main thing to focus (haha) on, ensure test coverage for all the things.

@TakayoshiKochi
Copy link
Member Author

@annevk thanks for the pointer! and I will work on test coverage as well.

@TakayoshiKochi TakayoshiKochi deleted the dialog_group branch March 15, 2018 09:27
@domenic domenic added the topic: dialog The <dialog> element label Oct 20, 2021
Loirooriol added a commit to Loirooriol/web-platform-tests that referenced this pull request Dec 8, 2021
There used to be multiple focus fixup rules, but they were collapsed
into a single one in whatwg/html#3566
domenic pushed a commit to web-platform-tests/wpt that referenced this pull request Dec 8, 2021
There used to be multiple focus fixup rules, but they were collapsed
into a single one in whatwg/html#3566
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Dec 20, 2021
Automatic update from web-platform-tests
Fix links to focus fixup rule

There used to be multiple focus fixup rules, but they were collapsed
into a single one in whatwg/html#3566

--

wpt-commits: 6c97724b71c820eb502b3a246a2858e07c781aeb
wpt-pr: 31960
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
removal/deprecation Removing or deprecating a feature topic: dialog The <dialog> element topic: focus
Development

Successfully merging this pull request may close these issues.

3 participants