mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +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
Notes:
sideshowbarker
2024-07-19 11:53:30 +09:00
Author: https://github.com/awesomekling
Commit: b94c7665a9
12 changed files with 116 additions and 1 deletions
|
@ -13,6 +13,7 @@ public:
|
|||
void set_document(Document*);
|
||||
|
||||
Function<void(const String&)> on_link_click;
|
||||
Function<void(const String&)> on_title_change;
|
||||
|
||||
protected:
|
||||
HtmlView(GWidget* parent = nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue