mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
parent
dc159d055c
commit
71c5d1764a
2 changed files with 4 additions and 10 deletions
|
@ -1740,8 +1740,10 @@ impl DocumentMethods for Document {
|
|||
let name = QualName::new(ns!(SVG), atom!("title"));
|
||||
let elem = Element::create(name, None, self,
|
||||
ElementCreator::ScriptCreated);
|
||||
root.upcast::<Node>()
|
||||
.AppendChild(elem.upcast())
|
||||
let parent = root.upcast::<Node>();
|
||||
let child = elem.upcast::<Node>();
|
||||
parent
|
||||
.InsertBefore(child, parent.GetFirstChild().r())
|
||||
.unwrap()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue