ladybird/Tests/LibWeb/Text/input/DOM/DOMStringMap-setter-with-invalid-name.html
Tim Ledbetter ba641d4784 LibWeb: Update attribute name validation in Element.setAttribute()
This now follows the latest specification steps.
2025-06-19 11:00:53 +01:00

13 lines
327 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {
let threw = false;
try {
document.body.dataset["=foo"] = "foo";
} catch {
threw = true;
}
println("Setting DOMStringMap with an invalid name key throws? " + threw);
});
</script>