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

Script tag highlighting inconsistent with browser behaviour #251

Open
1 task done
KernelDeimos opened this issue Mar 29, 2021 · 0 comments
Open
1 task done

Script tag highlighting inconsistent with browser behaviour #251

KernelDeimos opened this issue Mar 29, 2021 · 0 comments

Comments

@KernelDeimos
Copy link

KernelDeimos commented Mar 29, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant