mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-12 09:57:00 +02:00
We were incorrectly assuming that setAttribute() could never fail here, even when passed an invalid name. Found by Domato. (cherry picked from commit 093f1dd805f699801079f55d0d490d80b463ccbb)
13 lines
314 B
HTML
13 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>
|