Skip to content

atob should ignore spaces #42530

Closed
Closed
@zloirock

Description

@zloirock

Version

17.8.0

Platform

MacOS 12.2

Subsystem

global / buffer

What steps will reproduce the bug?

No response

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior?

atob(' ') === ''

What do you see instead?

atob(' ') // => DOMException [InvalidCharacterError]: Invalid character

Additional information

https://html.spec.whatwg.org/multipage/webappapis.html#dom-atob
https://infra.spec.whatwg.org/#forgiving-base64-decode

Metadata

Metadata

Assignees

No one assigned

    Labels

    bufferIssues and PRs related to the buffer subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions