ladybird/Tests/LibWeb/Text/input/DOM/DOMStringMap-setter-with-invalid-name.html

13 lines
314 B
HTML
Raw Normal View History

<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>