private static FormElement FormMap(IElement node)
        {
            if (node == null)
            {
                return(null);
            }

            var el = new FormElement(value => node.SetAttribute("value", value))
            {
                Attributes = node.Attributes.ToDictionary(x => x.Name, y => y.Value),
                TagName    = node.TagName,
                Text       = node.TextContent,
                InnerHtml  = node.InnerHtml,
                OuterHtml  = node.OuterHtml
            };

            el.OnQuerySelector(query => Map(node.QuerySelector(query)));
            el.OnQuerySelectorAll(query => node.QuerySelectorAll(query).Select(Map));

            return(el);
        }
        private static FormElement FormMap(IElement node)
        {
            if (node == null)
                return null;

            var el = new FormElement(value => node.SetAttribute("value", value))
            {
                Attributes = node.Attributes.ToDictionary(x => x.Name, y => y.Value),
                TagName = node.TagName,
                Text = node.TextContent,
                InnerHtml = node.InnerHtml,
                OuterHtml = node.OuterHtml
            };

            el.OnQuerySelector(query => Map(node.QuerySelector(query)));
            el.OnQuerySelectorAll(query => node.QuerySelectorAll(query).Select(Map));

            return el;
        }