mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
ff48b7333c
We currently create a shadow tree once for each DOM element that renders with a shadow tree (e.g. <input>, <details>). If such an element is removed from the DOM, we must remove its shadow tree. Otherwise, the shadow tree will refer to the old document in perpetuity. If the node is added back to a DOM, then recreate the shadow tree.
9 lines
246 B
HTML
9 lines
246 B
HTML
<div id=test></div>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
let element = document.getElementById('test');
|
|
element.innerHTML = "<textarea></textarea>";
|
|
println(element.innerHTML);
|
|
});
|
|
</script>
|