Skip to content

Low version browsers such as Chrome 109 may generate errors when setting illegal attribute names #283

Description

@rock53770

Environment

Comark Version: 0.5.0
Framework: Vue
Chrome Version: 109

Comark Version

v0.5.0

Reproduction

Chrome 109
Open the playground: https://comark.dev/play/editor?example=all-features
Clear the editor and paste the markdown below

   :Alert{id="1""}

Description

The output of the large model is unstable and may output characters such as Alert {id="1""} with additional quotation marks, which can result in illegal attribute names and error messages in lower versions

Low version browsers such as Chrome 109 may generate errors when setting illegal attribute names

The 'is not a valid attribute name' in the error message refers to a single double quotation mark character. According to HTML standards, attribute names cannot contain characters such as', ',<,>,/,=, etc., so the browser directly throws a DOMException

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions