1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 01:17:36 +00:00

LibWeb: Fix empty value attribute for 'file' input returning fakepath

It should be returning the empty string for this case.
This commit is contained in:
Shannon Booth 2023-08-26 13:26:24 +12:00 committed by Andreas Kling
parent c03e025a32
commit fc4fd6cb02
3 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,8 @@
<script src="include.js"></script>
<script>
test(() => {
const input = document.createElement("input");
input.type = 'file';
println(`value = '${input.value}'`);
})
</script>