mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Support arbitrary protos when wrapping DOM objects with constructors.
This commit is contained in:
parent
d9600ff50f
commit
dbff26bce0
197 changed files with 2028 additions and 586 deletions
|
@ -728,7 +728,7 @@ pub fn handle_get_page_source(
|
|||
Some(element) => match element.GetOuterHTML() {
|
||||
Ok(source) => Ok(source.to_string()),
|
||||
Err(_) => {
|
||||
match XMLSerializer::new(document.window())
|
||||
match XMLSerializer::new(document.window(), None)
|
||||
.SerializeToString(element.upcast::<Node>())
|
||||
{
|
||||
Ok(source) => Ok(source.to_string()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue