mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:12:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			418 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			418 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <LibHTML/DOM/HTMLElement.h>
 | |
| 
 | |
| class HTMLAnchorElement : public HTMLElement {
 | |
| public:
 | |
|     HTMLAnchorElement(Document&, const String& tag_name);
 | |
|     virtual ~HTMLAnchorElement() override;
 | |
| 
 | |
|     String href() const { return attribute("href"); }
 | |
| };
 | |
| 
 | |
| template<>
 | |
| inline bool is<HTMLAnchorElement>(const Node& node)
 | |
| {
 | |
|     return is<Element>(node) && to<Element>(node).tag_name().to_lowercase() == "a";
 | |
| }
 | 
