mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
LibWeb: Implement Navigable::target_name()
This commit is contained in:
parent
a482166087
commit
088af86c90
Notes:
sideshowbarker
2024-07-16 22:22:13 +09:00
Author: https://github.com/ADKaster
Commit: 088af86c90
Pull-request: https://github.com/SerenityOS/serenity/pull/20873
Reviewed-by: https://github.com/Lubrsi ✅
1 changed files with 2 additions and 3 deletions
|
@ -208,9 +208,8 @@ JS::GCPtr<HTML::Window> Navigable::active_window()
|
|||
// https://html.spec.whatwg.org/multipage/document-sequences.html#nav-target
|
||||
String Navigable::target_name() const
|
||||
{
|
||||
// FIXME: A navigable's target name is its active session history entry's document state's navigable target name.
|
||||
dbgln("FIXME: Implement Navigable::target_name()");
|
||||
return {};
|
||||
// A navigable's target name is its active session history entry's document state's navigable target name.
|
||||
return active_session_history_entry()->document_state->navigable_target_name();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/document-sequences.html#nav-container
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue