mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 01:26:22 +00:00
LibWeb: Handle changes to an input element's "multiple" attribute
Update the shadow tree so that the attribute is reflected on the page.
This commit is contained in:
parent
6af7f7e0f5
commit
06a3ca734e
Notes:
sideshowbarker
2024-07-18 22:57:59 +09:00
Author: https://github.com/trflynn89
Commit: 06a3ca734e
Pull-request: https://github.com/SerenityOS/serenity/pull/23838
3 changed files with 35 additions and 0 deletions
|
@ -1,2 +1,9 @@
|
|||
<input type="file" />
|
||||
<input type="file" multiple />
|
||||
<input id="multiple" type="file" />
|
||||
<script type="text/javascript">
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
let input = document.querySelector("#multiple");
|
||||
input.multiple = true;
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue