Skip to content

[#105] Markup after a spacing in an opening tag in your template could not be parsed #293

@klebba

Description

@klebba

My template does string interpretation of an attribute value:

<div id="container">
  <a href="/"><button>Main</button></a>
  <ul>
  ${list.map(item => [item.hash, html`
    <li><a href="/series/${item.hash}">${item.hash}</a></li>
  `])}
  </ul>
</div>

I know this is not allowed anymore, but the error message is a bit confusing:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions