1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00

LibWeb: Implement Navigable::target_name()

This commit is contained in:
Andrew Kaster 2023-08-31 20:51:46 +02:00 committed by Luke Wilde
parent a482166087
commit 088af86c90

View file

@ -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