Skip to content

Investigate BOM handling during JSON parsing #4977

@npaun

Description

@npaun

See fetch/api/response/json.any.js:

  • If the JSON starts with the UTF-16 BOM, it must be rejected with SyntaxError
  • If the JSON starts with the UTF-8 BOM, it should be stripped.
    • data:,\uFEFF{ "b": 1, "a": 2, "b": 3 }

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions