HtmlParserExtensions
Extensions to be used exclusively by the parser.
Appends a comment node to the specified node.
Adds an element to the list of active formatting elements.
Inserts a scope marker at the end of the list of active formatting elements.
Clear the list of active formatting elements up to the last marker.
Examines if the given element is one of the table elements (table, tbody, tfoot, thead, tr).
public static void SetAttributes(this Element element, List<KeyValuePair<string, string>> attributes)
Adds all given attributes to the element, without any duplicate checks.
public static void SetUniqueAttributes(this Element element, List<KeyValuePair<string, string>> attributes)
Sanatizes the given list by removing the duplicates first, then calls the
SetAttributes method to add the remaining attributes to the element.