mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:57:45 +00:00
LibWeb: Implement the document title attribute closer to the spec
The main differences between our current implementation and the spec are: * The title element need not be a child of the head element. * If the title element does not exist, the default value should be the empty string - we currently return a null string. * We've since added AOs for several of the spec steps here, so we do not need to implement those steps inline.
This commit is contained in:
parent
43b3673198
commit
f2a28e83de
4 changed files with 124 additions and 32 deletions
|
@ -173,7 +173,7 @@ public:
|
|||
WebIDL::ExceptionOr<void> set_body(HTML::HTMLElement* new_body);
|
||||
|
||||
DeprecatedString title() const;
|
||||
void set_title(DeprecatedString const&);
|
||||
WebIDL::ExceptionOr<void> set_title(DeprecatedString const&);
|
||||
|
||||
HTML::BrowsingContext* browsing_context() { return m_browsing_context.ptr(); }
|
||||
HTML::BrowsingContext const* browsing_context() const { return m_browsing_context.ptr(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue