Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[popover] Make togglePopover throw more exceptions
https://bugs.webkit.org/show_bug.cgi?id=258574 Reviewed by Tim Nguyen. Throw exceptions in togglePopover in case of a disconnected node or the popover attribute not being set anymore, see whatwg/html#8999. * LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/togglePopover-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/togglePopover.html: * Source/WebCore/html/HTMLElement.cpp: (WebCore::HTMLElement::togglePopover): Canonical link: https://commits.webkit.org/265589@main
- Loading branch information
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...tTests/imported/w3c/web-platform-tests/html/semantics/popovers/togglePopover-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
|
||
PASS togglePopover should toggle the popover and return true or false as specified. | ||
PASS togglePopover's return value should reflect what the end state is, not just the force parameter. | ||
PASS togglePopover should throw an exception when there is no popover attribute. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters