mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:22:45 +00:00 
			
		
		
		
	 f404a1dc16
			
		
	
	
		f404a1dc16
		
	
	
	
	
		
			
			Right now this is just a simple ParentNode subclass with its node type being DOCUMENT_FRAGMENT_NODE.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			411 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			411 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <LibHTML/DOM/ParentNode.h>
 | |
| 
 | |
| class DocumentFragment : public ParentNode {
 | |
| public:
 | |
|     DocumentFragment(Document& document)
 | |
|         : ParentNode(document, NodeType::DOCUMENT_FRAGMENT_NODE)
 | |
|     {
 | |
|     }
 | |
| 
 | |
|     virtual String tag_name() const override { return "#document-fragment"; }
 | |
| };
 | |
| 
 | |
| template<>
 | |
| inline bool is<DocumentFragment>(const Node& node)
 | |
| {
 | |
|     return node.is_document_fragment();
 | |
| }
 |