Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using a self closing script tag #27

Closed
Akeboshiwind opened this issue Apr 23, 2024 · 3 comments
Closed

Error when using a self closing script tag #27

Akeboshiwind opened this issue Apr 23, 2024 · 3 comments

Comments

@Akeboshiwind
Copy link

With the following document:

---
---
<script />
<div>this isn't highlighted</div>

I get the following in the playground:

frontmatter [0, 0] - [1, 3]
  frontmatter_js_block [0, 3] - [0, 3]
ERROR [2, 0] - [3, 33]
  tag_name [2, 1] - [2, 7]
  attribute_js_expr [2, 10] - [3, 13]
  attribute_js_expr [3, 14] - [3, 33]

And it looks like this:
Screenshot 2024-04-23 at 11 42 00

@Akeboshiwind
Copy link
Author

Oddly seems to only happen with the script tag 🤔

@virchau13
Copy link
Owner

Oh, self-closing script tags aren't allowed in HTML5. (Are they allowed in Astro?)

@virchau13
Copy link
Owner

Looks like self-closing script tags are allowed in Astro. I should probably fix this.

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

No branches or pull requests

2 participants