mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 23:52:57 +00:00
We were incorrectly assuming that setAttribute() could never fail here, even when passed an invalid name. Found by Domato.
12 lines
314 B
HTML
12 lines
314 B
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>
|