Shouldn't you be comparing to `html.innerHTML`?