more setAttribute fixes
Merge pull request #3023 from fritzing/3015

more setAttribute fixes