-
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
Add popover open check in attribute change steps #9526
Conversation
Fixes whatwg#9459 Chromium has already had this check for some time, and without it firefox hits an assertion: whatwg#9459
Firfox will introduce this check at https://phabricator.services.mozilla.com/D181880. Thanks @josepharhar! |
<li><p>If <var>oldValue</var> and <var>value</var> are in different <span | ||
data-x="attr-popover">states</span>, then run the <span>hide popover algorithm</span> given | ||
<var>element</var>, true, true, and false.</p></li> | ||
<li><p>If <var>element</var>'s <span>popover visibility state</span> is in the <span |
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.
The change proposed in #9459 (comment) is slightly different. Was the second check skip intentionally?
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.
Ah, yeah I see you mentioned checking the popover showing or hiding flag.
Does your jsfiddle from this comment show why checking the popover showing or hiding flag helps?
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.
@josepharhar: sorry, due to the complexity of the topic and lack of time I currently can't answer that question.
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.
@nt1m would you be able to review this? It looks editorially fine, but would be nice if it at least one more implementer signed off too.
Fixes #9459
Chromium has already had this check for some time, and without it firefox hits an assertion:
#9459
(See WHATWG Working Mode: Changes for more details.)
/popover.html ( diff )