use textContent as base for calculation of docHash as innerHTML gives very idfferent values