Skip to content

set:html in combination with the <noscript> element #1129

@RogierdeRuijter

Description

@RogierdeRuijter

Astro Info

Astro                    v5.15.5
Vite                     v6.4.1
Node                     v24.6.0
System                   macOS (arm64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             none

Describe the Bug

When using the <noscript> element inside a string that gets parsed as html with set:html. The children of the element gets parsed as a text node.

Reproductie

  • Checkout repo
  • Run npm run dev
  • Go to the index page
  • Inspecting it with dev tools
  • In the console you can run document.querySelector("noscript")

You will see that the iframe inside of the noscript element is a text node.

What's the expected result?

That all the HTML in the provided string gets parsed by set:html

Link to Minimal Reproducible Example

https://github.com/RogierdeRuijter/set-html-noscript-element

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageIssue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions