public void BuildDocument()
        {
            if (this.SelectedElementAttributesString != string.Empty)
            {
                List <string> properties = HTMLParser.GetElementAttributes(this.SelectedElementAttributesString);
                this.SelectedElement.Attributes = new List <string>(properties);
            }
            else
            {
                this.SelectedElement.Attributes = new List <string>();
            }

            string html = string.Empty;

            foreach (ElementModel element in this.Elements)
            {
                html = $"{html}{element}";
            }
            this.Document = $"<!DOCTYPE html>{html}";
        }
        public void AppendElement()
        {
            ElementModel element;

            if (this.Attributes != string.Empty)
            {
                List <string> properties = HTMLParser.GetElementAttributes(this.Attributes);
                element = new ElementModel(this.Type, properties, this.InnerHTML);
                element.IsInlineParent = this.IsInlineParent;
                this.SelectedElement.Append(element);
            }
            else
            {
                element = new ElementModel(this.Type, this.InnerHTML);
                element.IsInlineParent = IsInlineParent;
                this.SelectedElement.Append(element);
            }
            this.Type       = string.Empty;
            this.Attributes = string.Empty;
            this.InnerHTML  = string.Empty;

            this.IsInlineParent = false;
            this.BuildDocument();
        }