ladybird/Tests/LibWeb/Text/input/DOM/DOMStringMap-setter-with-invalid-name.html
2025-03-20 11:50:49 +01:00

13 lines
330 B
HTML

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