Merge pull request #815 from Demonthos/fix-interpreter-remove-attribute

fix removing attributes in web sledgehammer bindings
This commit is contained in:
Jon Kelley 2023-02-05 20:33:24 -08:00 committed by GitHub
commit d0fb05385a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -217,7 +217,7 @@ mod js {
}
fn remove_attribute(id: u32, field: &str<u8, attr>, ns: &str<u8, ns_cache>) {
r#"{name = $field$;
node = this.nodes[$id$];
node = nodes[$id$];
if (ns == "style") {
node.style.removeProperty(name);
} else if (ns !== null && ns !== undefined && ns !== "") {