Only run update steps if token was found

This commit is contained in:
Connor Brewster 2017-08-15 14:44:16 -05:00
parent 221b099db4
commit 0b6fa8f0f3
2 changed files with 2 additions and 7 deletions

View file

@ -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(())
}