mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
d11c7a19da
In the UI process, we encode generated HTML as Base64 to avoid having to deal with things like arbitrarily nested quotes. The HTML is encoded as UTF-8, and the raw bytes of that encoding are transcoded to Base64. In the Inspector process, we are decoding the Base64 string using atob, which has awkward non-Unicode limitations. The resulting string is only a byte string. We must further decode the bytes as UTF-8, which we do using TextDecoder. |
||
---|---|---|
.. | ||
etc | ||
home/anon | ||
res | ||
root | ||
usr/share | ||
www |