mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 03:37: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.
11 lines
283 B
HTML
11 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>
|