public HtmlElementNode(HtmlParser.ElementContext elementContext, HtmlStringNode name, Dictionary <string, HtmlAttributeNode> attributes, List <Node> content, HtmlStringNode closingTag) : base(elementContext) { Name = name; Attributes = attributes; Content = content; ClosingTag = closingTag ?? throw new ArgumentNullException(nameof(closingTag)); }
public HtmlAttributeNode(HtmlParser.AttributeContext attributeContext, HtmlStringNode name, HtmlStringNode value) : base(attributeContext) { Name = name ?? throw new ArgumentNullException(nameof(name)); Value = value ?? throw new ArgumentNullException(nameof(value)); }