public override Node CloneNode(Boolean deep = true) { var node = new Comment(Data); CopyProperties(this, node, deep); return node; }
public Comment ToElement() { var comment = new Comment(); comment.Data = _data; return comment; }
/// <summary> /// Appends a comment node to the specified node. /// </summary> /// <param name="parent">The node which will contain the comment node.</param> /// <param name="commentToken">The comment token.</param> void AddComment(Node parent, HtmlToken commentToken) { var tag = (HtmlCommentToken)commentToken; var comment = new Comment(); comment.Data = tag.Data; parent.AppendChild(comment); }