Skip to content

Embedded javascript string with // have unexpected behavrio #113

@alexr00

Description

@alexr00

Original from @namorzyny in microsoft/vscode#105779

Steps to Reproduce:

  1. Input some code like: <input type="button" value="text" onclick="location.href='https://www.google.com'">
  2. The code will display as a comment:

コメント 2020-09-01 083349

This only occurs if the // is in the string. The character before the // will get invalid.illegal.newline.js.

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