scorpion-26
|
d00adabc3c
|
LibWeb: Preserve order of HTMLCollection property names
The supported property names should be ordered in "tree order", though
m_cached_name_to_element_mappings doesn't preserve this ordering, which
breaks Object.getOwnPropertyNames.
Fixes at least the following WPT tests:
- https://wpt.live/dom/nodes/Element-children.html
- https://wpt.live/dom/collections/HTMLCollection-live-mutations.window.html
- https://wpt.live/dom/collections/HTMLCollection-supported-property-names.html
|
2024-10-04 22:43:44 +01:00 |
|