public BeginEvent(Compiler compiler)
{
NavigatorInput input = compiler.Input;
Debug.Assert(input != null);
Debug.Assert(input.NodeType != XPathNodeType.Namespace);
_nodeType = input.NodeType;
_namespaceUri = input.NamespaceURI;
_name = input.LocalName;
_prefix = input.Prefix;
_empty = input.IsEmptyTag;
if (_nodeType == XPathNodeType.Element)
{
_htmlProps = HtmlElementProps.GetProps(_name);
}
else if (_nodeType == XPathNodeType.Attribute)
{
_htmlProps = HtmlAttributeProps.GetProps(_name);
}
}