mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 18:45:06 +00:00
LibWeb: Invalidate layout-transformed text on DOM text node change
This fixes an issue where programmatically changing the value of an input element wasn't reflected visually.
This commit is contained in:
parent
e2740bd19d
commit
1c47695bae
5 changed files with 44 additions and 0 deletions
|
@ -0,0 +1,9 @@
|
|||
<input id="foo">
|
||||
<script>
|
||||
let foo = document.getElementById("foo");
|
||||
foo.value = "FAIL";
|
||||
document.body.offsetWidth; // Force a layout
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
foo.value = "PASS";
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue