mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
Send info about the DocumentType node to the devtools inspector (#36787)
This makes the DOCTYPE tag show up correctly in the inspector. Before:  After:  Testing: We don't have devtools tests Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
@@ -1283,6 +1283,21 @@ impl Node {
|
||||
is_shadow_host,
|
||||
shadow_root_mode,
|
||||
display,
|
||||
doctype_name: self
|
||||
.downcast::<DocumentType>()
|
||||
.map(DocumentType::name)
|
||||
.cloned()
|
||||
.map(String::from),
|
||||
doctype_public_identifier: self
|
||||
.downcast::<DocumentType>()
|
||||
.map(DocumentType::public_id)
|
||||
.cloned()
|
||||
.map(String::from),
|
||||
doctype_system_identifier: self
|
||||
.downcast::<DocumentType>()
|
||||
.map(DocumentType::system_id)
|
||||
.cloned()
|
||||
.map(String::from),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user