mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
script: make Node::xml_serialize
fallible. (#38532)
Testing: [Try run][1] did not reveal any test failures. There doesn't seem to be any straightforward failure scenarios that can be triggered in `xml5ever` that are not IO errors and the xml_serialize method simply serializes to a String buffer. [1]: https://github.com/servo/servo/actions/runs/16824267959/job/47657275606l Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
parent
8f52e28225
commit
23c0947072
3 changed files with 18 additions and 8 deletions
|
@ -464,6 +464,8 @@ impl ShadowRootMethods<crate::DomTypeHolder> for ShadowRoot {
|
|||
// algorithm steps with this and true.
|
||||
self.upcast::<Node>()
|
||||
.fragment_serialization_algorithm(true, can_gc)
|
||||
.inspect_err(|error| warn!("fragment serialization failed: {error:?}"))
|
||||
.unwrap_or_default()
|
||||
}
|
||||
|
||||
/// <https://html.spec.whatwg.org/multipage/#dom-shadowroot-innerhtml>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue