public ElementProxy AppendChild(string name) { if (_xmlElement == null) { var result = _geckoElement.OwnerDocument.CreateElement(name) as GeckoHtmlElement; _geckoElement.AppendChild(result); return(new ElementProxy(result)); } else { var result = _xmlElement.OwnerDocument.CreateElement(name); _xmlElement.AppendChild(result); return(new ElementProxy(result)); } }