Allow data: URIs
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 245
- Forks
- 80
- Avg merge
- 10h 46m
- Merged PRs (30d)
- 2
Description
href attributes do not allow URIs with the "data" scheme because the CLI sets fetch to a thin wrapper around fs.readFile. It would be convenient and expected for such values to be allowed (e.g., it would have saved me a file in https://github.com/gibson042/ecma262-proposal-json-superset ).
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
Start at src/cli.ts line 25, where the CLI sets fetch to a thin wrapper around fs.readFile. Trace how href values are fetched and identify where the data URI scheme is rejected. Done means href attributes accept data: URIs without requiring a separate file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100