mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:12:46 +00:00 
			
		
		
		
	 67ceba2e6a
			
		
	
	
		67ceba2e6a
		
	
	
	
	
		
			
			The intent is to use these to autogenerate prototype declarations for Window and WorkerGlobalScope classes. And the spec links are just nice to have :^)
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			612 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			612 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| // https://dom.spec.whatwg.org/#interface-domtokenlist
 | |
| [Exposed=Window]
 | |
| interface DOMTokenList {
 | |
|     readonly attribute unsigned long length;
 | |
|     getter DOMString? item(unsigned long index);
 | |
|     boolean contains(DOMString token);
 | |
|     [CEReactions] undefined add(DOMString... tokens);
 | |
|     [CEReactions] undefined remove(DOMString... tokens);
 | |
|     [CEReactions] boolean toggle(DOMString token, optional boolean force);
 | |
|     [CEReactions] boolean replace(DOMString token, DOMString newToken);
 | |
|     boolean supports(DOMString token);
 | |
|     [CEReactions] stringifier attribute DOMString value;
 | |
|     iterable<DOMString>;
 | |
| };
 |