mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 20:25:07 +00:00
LibHTML+Browser: Show target URL of hovered links in Browser statusbar
HtmlView will now invoke the on_link_hover hook when the cursor enters or leaves a DOM node that has an enclosing link element. This patch also updates the meaning of Node::enclosing_link_element() to find the nearest HTMLAnchorElementAncestor *with an href attribute*.
This commit is contained in:
parent
73af2f8d02
commit
884ae80699
6 changed files with 31 additions and 4 deletions
|
@ -31,6 +31,7 @@ public:
|
|||
|
||||
virtual String tag_name() const final { return m_tag_name; }
|
||||
|
||||
bool has_attribute(const String& name) const { return !attribute(name).is_null(); }
|
||||
String attribute(const String& name) const;
|
||||
void set_attribute(const String& name, const String& value);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue