Skip to content

DOM exception in Chrome, Edge when using application/xhtml xml content type #5852

@dvdckl

Description

@dvdckl

Version

2.3.4

Reproduction link

data:application/xhtml+xml;base64,PGJvZHkgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiPjxzY3JpcHQgc3JjPSJodHRwczovL3VucGtnLmNvbS92dWVAMi4zLjQiLz48L2JvZHk%2B

Steps to reproduce

In Chrome or Edge, load the vue.js script in a document served as application/xhtml xml to generate an uncaught exception.

What is expected?

No exception in both text/html and application/xhtml xml documents

What is actually happening?

"Uncaught DOMException: Failed to set the 'innerHTML' property on 'Element': The provided markup is invalid XML, and therefore cannot be inserted into an XML document."

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions