fix volatile attributes (#2278)

This commit is contained in:
Evan Almloff 2024-04-08 20:42:48 -05:00 committed by GitHub
parent c799168666
commit 26c109f661
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -367,7 +367,9 @@ impl VNode {
std::cmp::Ordering::Equal => {
let old = old_attributes_iter.next().unwrap();
let new = new_attributes_iter.next().unwrap();
if old.value != new.value {
// Volatile attributes are attributes that the browser may override so we always update them
let volatile = old.volatile;
if volatile || old.value != new.value {
self.write_attribute(
path,
new,