mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00

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.
8 lines
201 B
HTML
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>
|