1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00
ladybird/Tests/LibWeb/Text/input/HTML/href-invalid.html
Timothy Flynn 943ec820fc LibWeb: Avoid dereferencing an empty optional URL
Here, "null" means the empty optional. We don't need to also check if
the URL is valid; the url will be null if it was originally invalid.
2024-12-11 09:33:46 -08:00

8 lines
201 B
HTML

<script src="../include.js"></script>
<script>
test(() => {
const a = document.createElement("a");
a.href = "http://foo:b/c";
println(`href="${a.href}"`);
});
</script>