Skip to content

Use .html() method, it throws: Could not load dompurify #2914

Closed
@ShunCai

Description

@ShunCai

Hello,Use [email protected] in chrome browser,it throws the following error:Could not load dompurify

The Script:

window.jsPDF = window.jspdf.jsPDF;
var doc = new jsPDF();
doc.html(document.body, {
   callback: function (doc) {
     debugger;
   }
});

The HTML:

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>jsPDF bug</title>
    <script src="jspdf.umd.js"></script>
</head>

<body>
    <p>Test Could not load dompurify</p>
</body>
</html>

The Error:
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions