Skip to content

Replace DOMParser with template + innerHTML to avoid memory leak #23

Closed
@JounQin

Description

@JounQin

Initial checklist

Affected packages and versions

rehype-dom-parse

Link to runnable example

No response

Steps to reproduce

https://stackoverflow.com/questions/56451731/dom-parser-chrome-extension-memory-leak

Expected behavior

No memory leak

Actual behavior

I just noticed this issue from https://twitter.com/DIYgod/status/1761065494185156663

Runtime

No response

Package manager

No response

OS

No response

Build and bundle tools

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions