fix toString() in htmlElement