mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 22:45:06 +00:00
LibHTML: Add a way to get a Document's title
You can now query Document::title() to get a String containing whatever is inside the document's <title> tag. In support of this, this patch adds the <html>, <head> and <title> elements.
This commit is contained in:
parent
0c6af2d5b4
commit
b94c7665a9
12 changed files with 116 additions and 1 deletions
9
Libraries/LibHTML/DOM/HTMLHtmlElement.h
Normal file
9
Libraries/LibHTML/DOM/HTMLHtmlElement.h
Normal file
|
@ -0,0 +1,9 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibHTML/DOM/HTMLElement.h>
|
||||
|
||||
class HTMLHtmlElement : public HTMLElement {
|
||||
public:
|
||||
HTMLHtmlElement(Document&, const String& tag_name);
|
||||
virtual ~HTMLHtmlElement() override;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue