Skip to content

document.clone().append(html) is not threadsafe #2281

@jhy

Description

@jhy

If multiple threads try to call document.clone().append(html), they will fail.

.append(html) uses the document's parser, and that is not being cloned along with the document. And so multiple threads are hitting the same parser, which is not thread safe.

This is the root cause of #2280

Metadata

Metadata

Assignees

Labels

bugA confirmed bug, that we should fixfixedAn {bug|improvement} that has been {fixed|implemented}

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions