LibWeb: Extract the TextEncoderCommon mixin to its own IDL file

Co-Authored-By: Tim Flynn <trflynn89@pm.me>
This commit is contained in:
Luke Wilde 2025-02-07 12:40:26 +00:00 committed by Tim Flynn
commit 24d5f24749
Notes: github-actions[bot] 2025-02-07 16:05:58 +00:00
7 changed files with 57 additions and 14 deletions

View file

@ -1,7 +1,4 @@
// https://encoding.spec.whatwg.org/#textencodercommon
interface mixin TextEncoderCommon {
readonly attribute DOMString encoding;
};
#import <Encoding/TextEncoderCommon.idl>
// https://encoding.spec.whatwg.org/#dictdef-textencoderencodeintoresult
dictionary TextEncoderEncodeIntoResult {
@ -17,4 +14,5 @@ interface TextEncoder {
[NewObject] Uint8Array encode(optional USVString input = "");
TextEncoderEncodeIntoResult encodeInto(USVString source, [AllowShared] Uint8Array destination);
};
TextEncoder includes TextEncoderCommon;