mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-04 07:10:57 +00:00 
			
		
		
		
	The intent is to use these to autogenerate prototype declarations for Window and WorkerGlobalScope classes. And the spec links are just nice to have :^)
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			388 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			388 B
		
	
	
	
		
			Text
		
	
	
	
	
	
#import <DOM/Document.idl>
 | 
						|
 | 
						|
enum DOMParserSupportedType {
 | 
						|
    "text/html",
 | 
						|
    "text/xml",
 | 
						|
    "application/xml",
 | 
						|
    "application/xhtml+xml",
 | 
						|
    "image/svg+xml"
 | 
						|
};
 | 
						|
 | 
						|
// https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#domparser
 | 
						|
[Exposed=Window]
 | 
						|
interface DOMParser {
 | 
						|
    constructor();
 | 
						|
 | 
						|
    Document parseFromString(DOMString string, DOMParserSupportedType type);
 | 
						|
};
 |