mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-03 15:41:57 +00:00
Rather than returning a relative URL, an absolutized URL is now returned relative to the document base URL
14 lines
626 B
HTML
14 lines
626 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<form action="http://www.example.com/"></form>
|
|
<script>
|
|
test(() => {
|
|
const formElement = document.querySelector('form');
|
|
println(`form.action initial value: ${formElement.action}`);
|
|
formElement.action = "";
|
|
println(`Final segment of form.action after setting to the empty string: ${formElement.action.split('/').pop()}`);
|
|
formElement.action = "../test.html";
|
|
println(`Final segment of form.action after setting to "../test.html": ${formElement.action.split('/').pop()}`);
|
|
formElement.remove();
|
|
});
|
|
</script>
|