Privatize Comment

This commit is contained in:
Tim Taubert 2014-10-12 12:46:29 +02:00
parent 78fef7eec5
commit e15f8cb37f
3 changed files with 9 additions and 3 deletions

View file

@ -1469,7 +1469,7 @@ impl Node {
},
CommentNodeTypeId => {
let comment: JSRef<Comment> = CommentCast::to_ref(node).unwrap();
let comment = Comment::new(comment.characterdata.data().clone(), *document);
let comment = Comment::new(comment.characterdata().data().clone(), *document);
NodeCast::from_temporary(comment)
},
DocumentNodeTypeId => {