developit / developit/htm

Single line comments break props parsing

Đang mở
#213 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
9k
Fork
181
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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" },
}
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.