Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
The bare unattachedDoc that I previously naively created didn't have …
…a doctype and wasn't a HTML document, so the child style element didn't have the `old.style` attribute available
  • Loading branch information
eoghanmurray committed Apr 13, 2023
commit efcea7d285791b6df063f4f55435920502f29eb0
2 changes: 1 addition & 1 deletion packages/rrweb/src/record/mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ export default class MutationBuffer {
if (isIgnored(m.target, this.mirror)) {
return;
}
const unattachedDoc = new Document(); // avoid upsetting original document from a Content Security point of view
const unattachedDoc = document.implementation.createHTMLDocument(); // avoid upsetting original document from a Content Security point of view
switch (m.type) {
case 'characterData': {
const value = m.target.textContent;
Expand Down