HtmlParserExtensions
Extensions to be used exclusively by the parser or the tokenizer.
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.
Retrieves a number describing the error of a given error code.
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.