mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-20 09:11:53 +00:00
LibWeb: Make querySelectorAll match each element at most once
This commit is contained in:
parent
bb678e75f9
commit
7444f76b0d
Notes:
github-actions[bot]
2024-11-23 08:51:18 +00:00
Author: https://github.com/Gingeh
Commit: 7444f76b0d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2478
Reviewed-by: https://github.com/AtkinsSJ
2 changed files with 7 additions and 6 deletions
|
@ -76,6 +76,7 @@ static WebIDL::ExceptionOr<Variant<GC::Ptr<Element>, GC::Ref<NodeList>>> scope_m
|
|||
return TraversalDecision::Break;
|
||||
}
|
||||
results.append(element);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return TraversalDecision::Continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue