mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibHTML: Detect hovering over links
HtmlView now calls Node::enclosing_link_element() to find the nearest ancestor <a> element. This patch also adds HTMLElement and HTMLAnchorElement.
This commit is contained in:
parent
88de955073
commit
b477aff843
Notes:
sideshowbarker
2024-07-19 11:53:50 +09:00
Author: https://github.com/awesomekling
Commit: b477aff843
9 changed files with 60 additions and 0 deletions
11
Libraries/LibHTML/DOM/HTMLAnchorElement.h
Normal file
11
Libraries/LibHTML/DOM/HTMLAnchorElement.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
#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"); }
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue