mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-06 09:01:53 +00:00
This generally happens after a form is submitted. We need to update the text node in the shadow DOM to actually display the reset value.
10 lines
283 B
HTML
10 lines
283 B
HTML
<form id="form">
|
|
<textarea id="textarea">Original value</textarea>
|
|
</form>
|
|
<script type="text/javascript">
|
|
let textarea = document.getElementById("textarea");
|
|
textarea.value = "Modified value";
|
|
|
|
let form = document.getElementById("form");
|
|
form.reset();
|
|
</script>
|