mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 22:12:20 +00:00
LibWeb/HTML: Add missing if to <details>
attribute_changed() logic
This commit is contained in:
parent
a28b2b4ca1
commit
615034433b
Notes:
github-actions[bot]
2025-08-12 13:54:59 +00:00
Author: https://github.com/AtkinsSJ
Commit: 615034433b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5835
Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ void HTMLDetailsElement::attribute_changed(FlyString const& local_name, Optional
|
|||
else if (local_name == HTML::AttributeNames::open) {
|
||||
// 1. If one of oldValue or value is null and the other is not null, run the following steps, which are known as
|
||||
// the details notification task steps, for this details element:
|
||||
{
|
||||
if (old_value.has_value() != value.has_value()) {
|
||||
// 1. If oldValue is null, queue a details toggle event task given the details element, "closed", and "open".
|
||||
if (!old_value.has_value()) {
|
||||
queue_a_details_toggle_event_task("closed"_string, "open"_string);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue