LibWeb: Initialize clearTargets in event dispatch correctly

Corresponds to https://github.com/whatwg/dom/pull/1347
This commit is contained in:
Sam Atkins 2025-01-29 12:05:43 +00:00 committed by Jelle Raaijmakers
parent 3775f3399c
commit a5be7cb6fb
Notes: github-actions[bot] 2025-01-30 16:15:47 +00:00
4 changed files with 24 additions and 21 deletions

View file

@ -60,7 +60,7 @@ Vector<FlyString> NamedNodeMap::supported_property_names() const
names.append(attribute_name.to_string());
}
// 2. If this NamedNodeMap objects element is in the HTML namespace and its node document is an HTML document, then for each name in names:
// 2. If this NamedNodeMap objects element is in the HTML namespace and its node document is an HTML document, then for each name of names:
if (associated_element().namespace_uri() == Namespace::HTML && associated_element().document().is_html_document()) {
// 1. Let lowercaseName be name, in ASCII lowercase.
// 2. If lowercaseName is not equal to name, remove name from names.