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