-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Make auto popover list an algorithm #9241
Conversation
Fixes whatwg#9036 This patch also fixes a call to topmost auto popover which was passing an element instead of a document.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we care that "hide all popovers until" makes somewhat inefficient use of this? I guess it's okay, but I would kinda expect the last two instances to be consolidated perhaps.
If we cached the list by storing it in a variable, I'm worried that it would become out of date in any of the three calls to auto popover list in hide all popovers until |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great if this could be reviewed by @jakearchibald since he thought the current definition did not quite work.
source
Outdated
<p>To get the <dfn>auto popover list</dfn> for a <code>Document</code> <var>document</var>:</p> | ||
|
||
<ol> | ||
<li><p>Let <var>popovers</var> be an empty <span>list</span>.</p></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer using list syntax here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is list syntax?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let popovers be « ».
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't quite the language I suggested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I changed it to exactly "Let popovers be « »."
I ended up changing the commit message to lead with the normative change and have the editorial change as a comment in the body. |
Fixes #9036
This patch also fixes a call to topmost auto popover which was passing an element instead of a document.
(See WHATWG Working Mode: Changes for more details.)
/popover.html ( diff )