Improve use of setAttributeNS by qualifying names

Fixes compatibility problems with Chrome failing test suite.
Related to http://code.google.com/p/chromium/issues/detail?id=142168
and https://bugs.webkit.org/show_bug.cgi?id=22958 .