using DOM node property names rather than HTML attributes (eg node.className="whatever" rather than node.setAttribute("class","whatever") ) wherever possible