mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:22:46 +00:00 
			
		
		
		
	 e9b56b5b9c
			
		
	
	
		e9b56b5b9c
		
	
	
	
	
		
			
			This requires moving remove_all_children() from ParentNode to Node, which makes ParentNode.cpp empty, so remove it. It also co-opts the existing Node::text_content() method and tweaks it slightly to fit the semantics of Node.textContent.
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			454 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			454 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| interface Node : EventTarget {
 | |
| 
 | |
|     readonly attribute DOMString nodeName;
 | |
|     readonly attribute Node? firstChild;
 | |
|     readonly attribute Node? lastChild;
 | |
|     readonly attribute Node? previousSibling;
 | |
|     readonly attribute Node? nextSibling;
 | |
|     readonly attribute Node? parentNode;
 | |
|     readonly attribute Element? parentElement;
 | |
|     attribute DOMString textContent;
 | |
| 
 | |
|     Node appendChild(Node node);
 | |
|     Node insertBefore(Node node, Node? child);
 | |
| 
 | |
| }
 | |
| 
 |