Implementations allow all values in type getter
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 118
- Forks
- 52
- Avg merge
- 9d 16h
- Merged PRs (30d)
- 1
Description
The following code:
a = new Blob([1,2,3], {type: "text/(plain"});
console.log(a.type) // prints text/(plain
works in Chrome and Firefox. It also works if you replace ( with \x02 or something
The spec, however, asks user agents to restrict values in the range U+0020 to U+007E in the constructor, and in the getter it only allows a nonempty value to be returned if it is a parseable MIME type.
Perhaps we should relax these restrictions in the spec?
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 by comparing the Blob constructor’s type handling and the type getter requirements described in the issue with the behavior shown in the JavaScript example. Determine whether the specification should retain or relax these restrictions; done means the decision is resolved and the relevant File API specification text reflects it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api, web-dev
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100