Example #1
0
 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));
 }
Example #2
0
 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));
 }