Skip to content

Single line comments break props parsing #213

Description

@marvinhagemeister

Single line comments in the opening tag seem to break props parsing. The rendered vnode will only receive an empty object as props.

html`<span
    // Every attribute after this comment will be dropped
    id="foo"
  />`

Actual Behavior

// returned vnode
{
  props: {},
}

Expected Behavior

// returned vnode
{
  props: { id: "foo" },
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions