renamed getAttributeFromHTMLElement to getAttributeFromHtml.