diff --git a/components/script/dom/domtokenlist.rs b/components/script/dom/domtokenlist.rs index b4be05e2f3b..c3834ceeddd 100644 --- a/components/script/dom/domtokenlist.rs +++ b/components/script/dom/domtokenlist.rs @@ -158,9 +158,9 @@ impl DOMTokenListMethods for DOMTokenList { } else { atoms.remove(pos); } + // Step 5. + self.element.set_atomic_tokenlist_attribute(&self.local_name, atoms); } - // Step 5. - self.element.set_atomic_tokenlist_attribute(&self.local_name, atoms); Ok(()) } diff --git a/tests/wpt/metadata/custom-elements/reactions/DOMTokenList.html.ini b/tests/wpt/metadata/custom-elements/reactions/DOMTokenList.html.ini deleted file mode 100644 index 5056f704f45..00000000000 --- a/tests/wpt/metadata/custom-elements/reactions/DOMTokenList.html.ini +++ /dev/null @@ -1,5 +0,0 @@ -[DOMTokenList.html] - type: testharness - [replace on DOMTokenList must not enqueue an attributeChanged reaction when the token to replace does not exist in the attribute] - expected: FAIL -