mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:58:12 +00:00
LibWeb: Const qualify HTMLCollection::length
This commit is contained in:
parent
041d5bff91
commit
15944c5b26
2 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ JS::MarkedVector<Element*> HTMLCollection::collect_matching_elements() const
|
|||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-htmlcollection-length
|
||||
size_t HTMLCollection::length()
|
||||
size_t HTMLCollection::length() const
|
||||
{
|
||||
// The length getter steps are to return the number of nodes represented by the collection.
|
||||
return collect_matching_elements().size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue