mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWebView: Fix capitalization in devtools
This commit is contained in:
parent
64eeda6450
commit
31b20e38ee
Notes:
github-actions[bot]
2025-01-11 21:29:49 +00:00
Author: https://github.com/Psychpsyo
Commit: 31b20e38ee
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3227
Reviewed-by: https://github.com/trflynn89
2 changed files with 6 additions and 1 deletions
|
@ -1544,6 +1544,9 @@ void Node::serialize_tree_as_json(JsonObjectSerializer<StringBuilder>& object) c
|
|||
MUST(object.add("type"sv, "element"));
|
||||
|
||||
auto const* element = static_cast<DOM::Element const*>(this);
|
||||
if (element->namespace_uri().has_value())
|
||||
MUST(object.add("namespace"sv, element->namespace_uri().value()));
|
||||
|
||||
if (element->has_attributes()) {
|
||||
auto attributes = MUST(object.add_object("attributes"sv));
|
||||
element->for_each_attribute([&attributes](auto& name, auto& value) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue