Fix XSS vulnerability in SemanticHTMLParser::parseElement()

SemanticHTMLParser::parseElement() does not perform sufficient sanity checks on the user-provided attributes, which results in an XSS vector.