Skip to content

[Violation] Avoid using document.write() #169

@davidb1

Description

@davidb1

This is coming from:

    if (doc.body.children.length < 1) {
         doc.open('text/html', 'replace');
         doc.write(this.props.initialContent);
         doc.close();
    }

In Firefox this is an error and the frame won't load: DOMException: "The operation is insecure."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions