developit / developit/htm

Single line comments break props parsing

Open
#213 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9k
Forks
181
PR merge metrics
No merged PRs in 30d

Description

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

```jsx
html``
```

**Actual Behavior**

```js
// returned vnode
{
props: {},
}
```

**Expected Behavior**

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.