1
0
Fork 0
firefox/dom/bindings/crashtests/stringbuffer-USVString.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

11 lines
377 B
HTML

<!doctype html>
<script>
var div = document.createElement("div");
// Need a long-enough string that when we get it from the DOM it will not get
// inlined and will be an external stringbuffer string.
var str = "http://" + (new Array(200).join("a"));
div.setAttribute("x", str);
str = div.getAttribute("x");
// Now pass it as a USVString
new URL(str);
</script>