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:
Andreas Kling 2019-09-29 16:24:57 +02:00
parent 0c6af2d5b4
commit b94c7665a9
Notes: sideshowbarker 2024-07-19 11:53:30 +09:00
12 changed files with 116 additions and 1 deletions

View file

@ -0,0 +1,10 @@
#include <LibHTML/DOM/HTMLHtmlElement.h>
HTMLHtmlElement::HTMLHtmlElement(Document& document, const String& tag_name)
: HTMLElement(document, tag_name)
{
}
HTMLHtmlElement::~HTMLHtmlElement()
{
}