Fixed #1070 by converting all setAttribute() values to a string which is what all...