Unclosed tags insert unexpected text node
Open
- Dominant language
- JavaScript
- Stars
- 688
- Forks
- 48
- PR merge metrics
- No merged PRs in 30d
Description
`` html`` `` becomes `span`.
Should probably be `` or ``.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue with the html template literal containing two unclosed span tags, then trace nanohtml's HTML parsing and closing-tag handling. Compare the output with the two expected nesting alternatives; done means the unexpected text node is gone and the chosen valid DOM structure is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100