mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-04 07:10:57 +00:00 
			
		
		
		
	We had a very basic implementation of TextEncoder, let's add a TextDecoder next to that :^)
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			447 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			447 B
		
	
	
	
		
			Text
		
	
	
	
	
	
[Exposed=(Window,Worker)]
 | 
						|
interface TextDecoder {
 | 
						|
    // FIXME: 'optional TextDecoderOptions options = {}'
 | 
						|
    constructor(optional DOMString label = "utf-8");
 | 
						|
 | 
						|
    // FIXME: [AllowShared] on the first parameter.
 | 
						|
    // FIXME: 'optional TextDecodeOptions options = {}'
 | 
						|
    USVString decode(optional BufferSource input);
 | 
						|
 | 
						|
    readonly attribute DOMString encoding;
 | 
						|
    readonly attribute boolean fatal;
 | 
						|
    readonly attribute boolean ignoreBOM;
 | 
						|
};
 |