mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb: Iterate over a copy of associated form controls in form.reset()
DOM structure may change during reset algorithm invocation, which may lead to form controls being unregistered.
This commit is contained in:
parent
34a8f51eb8
commit
a0b44ff5e7
Notes:
github-actions[bot]
2025-01-21 16:03:52 +00:00
Author: https://github.com/awesomekling
Commit: a0b44ff5e7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3333
Reviewed-by: https://github.com/trflynn89
2 changed files with 6 additions and 1 deletions
4
Tests/LibWeb/Crash/HTML/reset-form-iteration.html
Normal file
4
Tests/LibWeb/Crash/HTML/reset-form-iteration.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<form id="theForm"><output><input></output></form>
|
||||
<script>
|
||||
theForm.reset();
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue