mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-27 14:02:07 +00:00 
			
		
		
		
	 e4df1b223f
			
		
	
	
		e4df1b223f
		
	
	
	
	
		
			
			HTMLCollection is an awkward legacy interface from the DOM spec. It provides a live view of a DOM subtree, with some kind of filtering that determines which elements are part of the collection. We now return HTMLCollection objects from these APIs: - getElementsByClassName() - getElementsByName() - getElementsByTagName() This initial implementation does not do any kind of caching, since that is quite a tricky problem, and there will be plenty of time for tricky problems later on when the engine is more mature.
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			186 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			186 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| [CustomGet,CustomGetByIndex]
 | |
| interface HTMLCollection {
 | |
| 
 | |
|     readonly attribute unsigned long length;
 | |
|     Element? item(unsigned long index);
 | |
|     Element? namedItem(DOMString name);
 | |
| 
 | |
| };
 |