Detect invalid entity (like `&nsbp;`)
Open
Nobody has claimed this yet.
keep-unstale
- Dominant language
- JavaScript
- Stars
- 3.3k
- Forks
- 474
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 12
Description
Is your feature request related to a problem? Please describe.
Detect invalid entity (like &nsbp; or &IDoNotExist;).
Describe the solution you'd like
Add the entity-invalid rule which checks that the entities are valid.
Additional context
- Named character references: List of entities names that are supported by HTML.
character-entities: npm package containing the entities.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reviewing how HTMLHint rules are structured and how the character-entities package exposes supported names; define what the entity-invalid rule should accept and reject, then add coverage for valid and invalid named entities.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100