Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Script tag highlighting inconsistent with browser behaviour #251

Description

@KernelDeimos

Prerequisites

Description

A browser will find the first closing script tag regardless of what Javascript syntax is surrounding it. In Atom, the javascript syntax seems to take precedence over the HTML, such that a terminating script tag within quotes doesn't render properly. This can lead to confusion when it doesn't work as shown in a browser.

Steps to Reproduce

  1. Create an HTML file
  2. Add an inline script tag
  3. Write some string in the javascript containing an unescaped </script>

Expected behavior:

HTML syntax highlighting should resume immediately after the first closing script tag

Actual behavior:

Javascript syntax highlighting continues as if a closing script tag is valid in a string

Reproduces how often:

Consistently, but only when #242 doesn't occur.

Versions

Atom : 1.53.0
Electron: 6.1.12
Chrome : 76.0.3809.146
Node : 12.4.0

Additional Information

Screen Shot 2021-03-29 at 10 54 21 AM

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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