mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-04 10:18:51 +00:00
We now show a tooltip for the hovered node's enclosing HTML element's title attribute, if one is present. This patch also adds HTMLHeadingElement. The tags h1-h6 will now create the right kind of objects.
14 lines
316 B
C++
14 lines
316 B
C++
#pragma once
|
|
|
|
#include <LibHTML/DOM/Element.h>
|
|
|
|
class HTMLElement : public Element {
|
|
public:
|
|
HTMLElement(Document&, const String& tag_name);
|
|
virtual ~HTMLElement() override;
|
|
|
|
String title() const { return attribute("title"); }
|
|
|
|
private:
|
|
virtual bool is_html_element() const final { return true; }
|
|
};
|