diff options
author | Tim van der Lippe <TimvdLippe@users.noreply.github.com> | 2025-05-12 12:53:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-12 10:53:03 +0000 |
commit | d780fb7695b6f97aa20de91f1807a19f29d7d0d7 (patch) | |
tree | 5223030e71b371b768bf18c12e2499501d70f4ee /components/script/webdriver_handlers.rs | |
parent | a0dd2c1bebbc238d2fe36b1134acfbc842c1f084 (diff) | |
download | servo-d780fb7695b6f97aa20de91f1807a19f29d7d0d7.tar.gz servo-d780fb7695b6f97aa20de91f1807a19f29d7d0d7.zip |
Implement trusted HTML sinks for Element (#36941)
Also implements a conversion for `TrustedHTMLOrNullIsEmptyString`
to `TrustedHTMLOrString` to avoid introducing a separate
`get_trusted_script_compliant_string` for the new type.
Part of #36258
Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
Diffstat (limited to 'components/script/webdriver_handlers.rs')
-rw-r--r-- | components/script/webdriver_handlers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/webdriver_handlers.rs b/components/script/webdriver_handlers.rs index 330ae4f0788..6b4264d945e 100644 --- a/components/script/webdriver_handlers.rs +++ b/components/script/webdriver_handlers.rs @@ -902,7 +902,7 @@ pub(crate) fn handle_get_page_source( .find_document(pipeline) .ok_or(ErrorStatus::UnknownError) .and_then(|document| match document.GetDocumentElement() { - Some(element) => match element.GetOuterHTML(can_gc) { + Some(element) => match element.outer_html(can_gc) { Ok(source) => Ok(source.to_string()), Err(_) => { match XMLSerializer::new(document.window(), None, can_gc) |