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/link-element-username-password-percent-encoded.html
Shannon Booth f511c0b441 LibURL+LibWeb: Do not percent decode in password/username getters
Doing it is not part of the spec. Whenever needed, the spec will
explicitly percent decode the username and password.

This fixes some URL WPT tests.
2024-08-04 12:59:02 +01:00

9 lines
336 B
HTML

<a id="username-and-password" href="http://user%20name:pa%40ss%3Aword@www.ladybird.org"></a>
<script src="../include.js"></script>
<script>
test(() => {
const anchorElement = document.getElementById('username-and-password');
println(anchorElement.username);
println(anchorElement.password);
})
</script>