The layout node is only accessed to clear the cached alt value, so the layout tree doesn't need to be up to date in this case.
7 lines
177 B
HTML
7 lines
177 B
HTML
<!DOCTYPE html>
|
|
<input type="image" alt="old">
|
|
<script>
|
|
document.body.offsetHeight;
|
|
document.body.append("");
|
|
document.querySelector("input").alt = "new";
|
|
</script>
|