diff --git a/Userland/Libraries/LibWebView/InspectorClient.cpp b/Userland/Libraries/LibWebView/InspectorClient.cpp index 97def360e3..28ef546355 100644 --- a/Userland/Libraries/LibWebView/InspectorClient.cpp +++ b/Userland/Libraries/LibWebView/InspectorClient.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023, Tim Flynn + * Copyright (c) 2023-2024, Tim Flynn * * SPDX-License-Identifier: BSD-2-Clause */ @@ -523,11 +523,13 @@ String InspectorClient::generate_dom_tree(JsonObject const& dom_tree) if (auto attributes = node.get_object("attributes"sv); attributes.has_value()) { attributes->for_each_member([&](auto const& name, auto const& value) { + auto value_string = value.as_string(); + builder.append(" "sv); - builder.appendff("", tag, name, value); + builder.appendff("", tag, name, value_string); builder.appendff("{}", name); builder.append('='); - builder.appendff("\"{}\"", value); + builder.appendff("\"{}\"", value_string); builder.append(""sv); }); }