1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:07:35 +00:00

LibWeb: Add the TextEncoder interface

This is from the Encoding Standard (https://encoding.spec.whatwg.org),
and therefore gets its own namespace and subdirectory within LibWeb :^)
This commit is contained in:
Linus Groh 2021-12-12 18:03:22 +00:00 committed by Andreas Kling
parent 0306cf2030
commit 35d3a1e77b
6 changed files with 69 additions and 1 deletions

View file

@ -0,0 +1,9 @@
[Exposed=(Window,Worker)]
interface TextEncoder {
constructor();
// [NewObject] Uint8Array encode(optional USVString input = "");
// TextEncoderEncodeIntoResult encodeInto(USVString source, [AllowShared] Uint8Array destination);
// readonly attribute DOMString encoding;
};