public DomObjectQuery ReplaceWith(params DomNode[] others) { if (others == null) { throw new ArgumentNullException(nameof(others)); } return(QueryMany( n => DomObjectQuery._ReplaceWith(n, others), n => DomObjectQuery._ReplaceWith(n, DomNode.CloneAll(others)) )); }
public DomObjectQuery ReplaceWith(params DomNode[] others) { if (others == null) { throw new ArgumentNullException(nameof(others)); } if (others.Length == 0) { return(RemoveSelf()); } return(QueryMany(n => _ReplaceWith(n, others), n => _ReplaceWith(n, DomNode.CloneAll(others)))); }
public DomElementQuery Prepend(params DomNode[] nodes) { return(Each(n => n.Append(nodes), n => n.Prepend(DomNode.CloneAll(nodes)))); }
public DomElementQuery Before(params DomNode[] previousSiblings) { return(Each(n => n.Before(previousSiblings), n => n.Before(DomNode.CloneAll(previousSiblings)))); }
public DomElementQuery After(params DomNode[] nextSiblings) { return(Each(n => n.After(nextSiblings), n => n.After(DomNode.CloneAll(nextSiblings)))); }
public DomObjectQuery Append(params DomNode[] nodes) { return(Each(n => n.Append(nodes), n => n.Append(DomNode.CloneAll(nodes)))); }