comics
comics copied to clipboard
Dialog (open via cheat code) is still in the DOM after closing
When activating the cheat, it opens a dialog injecting this DOM node (tested in https://swordscomic.com/):
<dialog open="">
<img class="dialog-image" src="/media/Travel.png">
</dialog>
After closing, instead of removing completely from the DOM, it stays, but hidden:
<dialog class="">
<img class="dialog-image" src="/media/Travel.png">
</dialog>
It changes some other attributes, but it was fast and I couldn't follow all the changes.
The node did not need to survive after being disposed. Adding many cheat will create many DOM nodes that are not useful anymore.