LibWeb: Make querySelectorAll match each element at most once

This commit is contained in:
Gingeh 2024-11-23 16:22:42 +11:00 committed by Andreas Kling
parent bb678e75f9
commit 7444f76b0d
Notes: github-actions[bot] 2024-11-23 08:51:18 +00:00
2 changed files with 7 additions and 6 deletions

View file

@ -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;