mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:17:35 +00:00
LibWeb: Use FlyString in Document::get_elements_by_name
This commit is contained in:
parent
2a94cddb02
commit
bd2fe3dcaa
3 changed files with 3 additions and 3 deletions
|
@ -1250,7 +1250,7 @@ void Document::set_hovered_node(Node* node)
|
|||
}
|
||||
}
|
||||
|
||||
JS::NonnullGCPtr<HTMLCollection> Document::get_elements_by_name(String const& name)
|
||||
JS::NonnullGCPtr<HTMLCollection> Document::get_elements_by_name(FlyString const& name)
|
||||
{
|
||||
return HTMLCollection::create(*this, HTMLCollection::Scope::Descendants, [name](Element const& element) {
|
||||
return element.name() == name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue