mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:22:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			413 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			413 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <LibHTML/DOM/Element.h>
 | |
| 
 | |
| class HTMLElement : public Element {
 | |
| public:
 | |
|     HTMLElement(Document&, const String& tag_name);
 | |
|     virtual ~HTMLElement() override;
 | |
| 
 | |
|     String title() const { return attribute("title"); }
 | |
| 
 | |
| private:
 | |
|     virtual bool is_html_element() const final { return true; }
 | |
| };
 | |
| 
 | |
| template<>
 | |
| inline bool is<HTMLElement>(const Node& node)
 | |
| {
 | |
|     return node.is_html_element();
 | |
| }
 | 
