-
Notifications
You must be signed in to change notification settings - Fork 99
Scripts fail to run when they are the only tag on page #876
Copy link
Copy link
Open
Labels
- P2-to-be-discussedNeeds discussionNeeds discussion
Description
Astro Info
Astro v3.2.0
Node v18.18.0
System macOS (arm64)
Package Manager yarn
Output static
Adapter none
Integrations @astrojs/prefetch
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Given the following code:
<script>
console.log("hi!")
</script>nothing happens.
If you add a div:
<script>
console.log("hi!")
</script>
<div />then it suddenly runs in console.
What's the expected result?
The script should run even without other tags present.
Link to Minimal Reproducible Example
Participation
- I am willing to submit a pull request for this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
- P2-to-be-discussedNeeds discussionNeeds discussion