ladybird/Tests/LibWeb/Text/expected/DOM/HTMLCollection-order.txt
Shannon Booth baaaa0008e LibWeb: Look for first ID _or_ name in HTMLCollection::named_item
Previously we would look for a matching ID, and then for a matching
name. If there was an element in the collection which had a matching ID
as well as an element with a matching name, we would always return the
element with a matching ID irrespective of what order that element was
in.
2024-04-26 07:44:01 -04:00

6 lines
60 B
Text

HTMLCollection
anchor1
anchor2
anchor3
anchor1
anchor2