public static void ReplaceContentWith(this IHTMLElement parent, INode value) { parent.Clear(); parent.Add(value); }