Use Element.text rather than .innerHtml where appropriate.