mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:12:45 +00:00 
			
		
		
		
	 e9da74ebe0
			
		
	
	
		e9da74ebe0
		
	
	
	
	
		
			
			This implements manual slottable assignment by way of HTMLSlotElement's `assign` API. This includes all of the slottable-related AOs needed to perform the assignment.
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			610 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			610 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <DOM/Element.idl>
 | |
| #import <DOM/Node.idl>
 | |
| #import <DOM/Text.idl>
 | |
| #import <HTML/HTMLElement.idl>
 | |
| 
 | |
| // https://html.spec.whatwg.org/multipage/scripting.html#htmlslotelement
 | |
| [Exposed=Window]
 | |
| interface HTMLSlotElement : HTMLElement {
 | |
| 
 | |
|     [HTMLConstructor] constructor();
 | |
| 
 | |
|     [CEReactions, Reflect] attribute DOMString name;
 | |
|     sequence<Node> assignedNodes(optional AssignedNodesOptions options = {});
 | |
|     sequence<Element> assignedElements(optional AssignedNodesOptions options = {});
 | |
|     undefined assign((Element or Text)... nodes);
 | |
| };
 | |
| 
 | |
| dictionary AssignedNodesOptions {
 | |
|     boolean flatten = false;
 | |
| };
 |