zlacker

[return to "How fast can browsers process base64 data?"]
1. danhau+Fd[view] [source] 2025-11-29 10:49:12
>>mfigui+(OP)
> However, when decoding, we must handle errors and skip spaces.

This had me scratching my head. Why would a base64 decoder need to skip spaces? But indeed, MDN documents this behavior:

> Note that: The whitespace in the space is ignored.

JS never ceases to surprise. Also, check out that typo :D

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

◧◩
2. layer8+LOl[view] [source] 2025-12-06 01:23:35
>>danhau+Fd
This might be for compatibility with XML Schema base64Binary, which collapses all whitespace (such as line breaks) to single spaces.
[go to top]