mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:42:43 +00:00 
			
		
		
		
	 35def88c8b
			
		
	
	
		35def88c8b
		
	
	
	
	
		
			
			We now have create_element(document, tag_name) in ElementFactory. This will be useful for constructing new elements outside of parsing.
		
			
				
	
	
		
			5 lines
		
	
	
	
		
			122 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			5 lines
		
	
	
	
		
			122 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <LibHTML/DOM/Element.h>
 | |
| 
 | |
| NonnullRefPtr<Element> create_element(Document&, const String& tag_name);
 |