public virtual bool RemoveChild(DomNode childNode)
{
switch (childNode.NodeType)
{
case HtmlNodeType.Attribute:
{
//TODO: support remove attribute
return false;
}
default:
{
if (myChildrenNodes != null)
{
bool result = myChildrenNodes.Remove(childNode);
if (result)
{
childNode.SetParent(null);
NotifyChange(ElementChangeKind.RemoveChild);
}
return result;
}
return false;
}
}
}