mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 22:12:44 +00:00 
			
		
		
		
	 10581cfaeb
			
		
	
	
		10581cfaeb
		
	
	
	
	
		
			
			Previously it would accept any DOMString, as we didn't support enums at the time. Now it will only accept what's specified in the DOMParserSupportedType enum. This also adds spec comments to DOMParser::parse_from_string.
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			289 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			289 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <DOM/Document.idl>
 | |
| 
 | |
| enum DOMParserSupportedType {
 | |
|     "text/html",
 | |
|     "text/xml",
 | |
|     "application/xml",
 | |
|     "application/xhtml+xml",
 | |
|     "image/svg+xml"
 | |
| };
 | |
| 
 | |
| interface DOMParser {
 | |
|     constructor();
 | |
| 
 | |
|     Document parseFromString(DOMString string, DOMParserSupportedType type);
 | |
| };
 |