public static XAttribute AttachTo(this XAttribute e, IHTMLElement c) { // tested by c.AsXElement().Add(e); return(e); }