LibWeb: Update attribute name validation in Element.toggleAttribute

This now follows the latest specification steps.
This commit is contained in:
Tim Ledbetter
2025-06-19 08:34:43 +01:00
committed by Tim Ledbetter
parent 4593c28769
commit acf2d773d5
Notes: github-actions[bot] 2025-06-19 10:02:19 +00:00
4 changed files with 9 additions and 9 deletions

View File

@@ -15,10 +15,10 @@
}
try {
element.toggleAttribute("0");
println("FAIL ('0')");
element.toggleAttribute("=");
println("FAIL ('=')");
} catch (err) {
println("PASS ('0'): " + err.name);
println("PASS ('='): " + err.name);
}
});
</script>