mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-26 02:52:35 +00:00 
			
		
		
		
	 45b36bd08a
			
		
	
	
		45b36bd08a
		
	
	
	
	
		
			
			A slottable is either a DOM element or a DOM text node. They may be assigned to slots (HTMLSlotElement) either automatically or manually. Automatic assignment occurs by matching a slot's `name` attribute to a slottable's `slot` attribute. Manual assignment occurs by using the slot's (not yet implemented) `assign` API. This commit does not perform the above assignments. It just sets up the slottable concept via IDL and hooks the slottable mixin into the element and text nodes.
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			315 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			315 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <DOM/CharacterData.idl>
 | |
| #import <DOM/Slottable.idl>
 | |
| #import <HTML/HTMLSlotElement.idl>
 | |
| 
 | |
| // https://dom.spec.whatwg.org/#text
 | |
| [Exposed=Window]
 | |
| interface Text : CharacterData {
 | |
|     constructor(optional DOMString data = "");
 | |
| 
 | |
|     [NewObject] Text splitText(unsigned long offset);
 | |
| 
 | |
| };
 | |
| 
 | |
| Text includes Slottable;
 |