mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:02:45 +00:00 
			
		
		
		
	 b477aff843
			
		
	
	
		b477aff843
		
	
	
	
	
		
			
			HtmlView now calls Node::enclosing_link_element() to find the nearest ancestor <a> element. This patch also adds HTMLElement and HTMLAnchorElement.
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			266 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			266 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"); }
 | |
| };
 |