Skip to content

DatastarNaN added to datastar elements without ids #679

@axelknock

Description

@axelknock
<!DOCTYPE html>
<html>
  <head>
    <script src="https://cdn.jsdelivr.net/gh/starfederation/datastar@1.0.0-beta.7/bundles/datastar.js" type="module"></script>
  </head>
  <body data-star />
</html>

Results in:

<html>
  <head>
    <script src="https://cdn.jsdelivr.net/gh/starfederation/datastar@1.0.0-beta.7/bundles/datastar.js" type="module"></script>
  <meta name="view-transition" content="same-origin"></head>
  <body data-star="" id="datastarNaN">
  </body>
</html>

Reproduces in beta.6 and beta.7 but not in beta.5.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions