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:
parent
0306cf2030
commit
35d3a1e77b
6 changed files with 69 additions and 1 deletions
9
Userland/Libraries/LibWeb/Encoding/TextEncoder.idl
Normal file
9
Userland/Libraries/LibWeb/Encoding/TextEncoder.idl
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue