Minor improvements to html attach

enabled compare of current and previous attach point by making both
elelments.. before it crashed when one was string.