choojs / choojs/nanohtml

<path>{children}</path> not rendered, crashes w/ error

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

Description

# problem

i copied and pasted [some of these](https://codepen.io/aurer/pen/jEGbA) into my choo app, only to find `bel` wasn't too happy about the DOM structure.

`scripts:browserify.bundle multiple root elements must be wrapped in an enclosing tag`

doesn't work:
```js

```

does work, but non-equivalent:
```js

```

related: https://github.com/choojs/choo/issues/514

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the two SVG examples from the issue in nanohtml and trace the bel parsing path that reports multiple root elements. Compare the nested case with the self-closing case; done means the nested SVG structure renders without the reported crash and existing behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.