diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-03-30 12:06:06 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-30 21:21:17 +0200 |
commit | c503047c71acbb9f1650f6c877cd9e53af3f2541 (patch) | |
tree | 3e7cf527cf4b990fdd7eb95b1dbfc0755c2c54ec /Userland/Libraries/LibWeb/DOM/Node.h | |
parent | 4fac577cf082c27a16e087983c96dafc39033e69 (diff) | |
download | serenity-c503047c71acbb9f1650f6c877cd9e53af3f2541.zip |
LibWeb: Get the first DOM node with a 'title' attribute for tooltip area
Rather than expecting the first parent to have a 'title' attribute,
search all ancestors.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Node.h')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Node.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Node.h b/Userland/Libraries/LibWeb/DOM/Node.h index d9fc88687a..ecdf0c42e7 100644 --- a/Userland/Libraries/LibWeb/DOM/Node.h +++ b/Userland/Libraries/LibWeb/DOM/Node.h @@ -112,6 +112,7 @@ public: const HTML::HTMLAnchorElement* enclosing_link_element() const; const HTML::HTMLElement* enclosing_html_element() const; + const HTML::HTMLElement* enclosing_html_element_with_attribute(const FlyString&) const; String child_text_content() const; |