Skip to content

runtime-dom.esm-bundler.js 不安全问题 #9305

@live-in-a-dream

Description

@live-in-a-dream

Vue version

3.3.4

Link to minimal reproduction

runtime-dom.esm-bundler.js

Steps to reproduce

runtime-dom.esm-bundler.js
1430 line
container.innerHTML = "";

What is expected?

while (container.firstChild) {
container.removeChild(container.firstChild);
}

What is actually happening?

Uncaught TypeError: Failed to set the 'innerHTML' property on 'Element': This document requires 'TrustedHTML' assignment.
This document requires 'TrustedHTML' assignment.

System Info

No response

Any additional comments?

No response

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