Skip to content

Commit

Permalink
Bug 1862371 [wpt PR 16244] - HTML: Test that <details open> fires the…
Browse files Browse the repository at this point in the history
… event even from the parser., a=testonly

Automatic update from web-platform-tests
HTML: Test that <details open> fires the event even from the parser.

whatwg/html#4500

--

wpt-commits: 06854ec7854c9061b84a8d675ff6fb8f0dcd08fc
wpt-pr: 16244

UltraBlame original commit: 93d1a7cfc9b50da825cb82bd72fabbd30218c41f
  • Loading branch information
marco-c committed Nov 16, 2023
1 parent 738b70e commit b5370d0
Showing 1 changed file with 71 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1837,6 +1837,77 @@
0
)
;
async_test
(
function
(
t
)
{
new
DOMParser
(
)
.
parseFromString
(
"
<
details
open
>
"
"
text
/
html
"
)
.
querySelector
(
"
details
"
)
.
ontoggle
=
t
.
step_func_done
(
function
(
e
)
{
assert_true
(
e
.
target
.
open
)
;
}
)
;
}
"
Setting
open
from
the
parser
fires
a
toggle
event
"
)
;
<
/
script
Expand Down

0 comments on commit b5370d0

Please sign in to comment.