mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Cleanup ProcessingInstruction
This commit is contained in:
parent
51dd6984f7
commit
2411d607d4
3 changed files with 12 additions and 4 deletions
|
@ -38,7 +38,7 @@ use dom::element::ElementHelpers;
|
|||
use dom::eventtarget::{EventTarget, EventTargetTypeId};
|
||||
use dom::htmlelement::HTMLElementTypeId;
|
||||
use dom::nodelist::NodeList;
|
||||
use dom::processinginstruction::ProcessingInstruction;
|
||||
use dom::processinginstruction::{ProcessingInstruction, ProcessingInstructionHelpers};
|
||||
use dom::text::Text;
|
||||
use dom::virtualmethods::{VirtualMethods, vtable_for};
|
||||
use dom::window::{Window, WindowHelpers};
|
||||
|
@ -1634,7 +1634,7 @@ impl Node {
|
|||
},
|
||||
NodeTypeId::ProcessingInstruction => {
|
||||
let pi: JSRef<ProcessingInstruction> = ProcessingInstructionCast::to_ref(node).unwrap();
|
||||
let pi = ProcessingInstruction::new(pi.target().clone(),
|
||||
let pi = ProcessingInstruction::new(pi.Target(),
|
||||
CharacterDataCast::from_ref(pi).Data(), document.r());
|
||||
NodeCast::from_temporary(pi)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue