choojs / choojs/nanohtml

Text node as a root ignores the following element

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

Description

```
html`.`
```

This ignores `` and returns `"."`, whereas `` html`..` `` correctly returns a `DocumentFragment`.

Workaround: `` html`.${""}` ``

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named. Reproduce the two html template examples, then trace the template-tag handling for a text node followed by an element; done means the first example preserves the anchor in a DocumentFragment while the existing trailing-text case continues to work.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.