Go back to
path.setAttribute('d', ...)
for a browser that is not compatible with SVG 1.1.
Also, if the browser has a brand that previously supported SVG 1.1, print a message saying that the user is upgrading to an older version (and maybe even considering another more stable browser brand that might have been developed with a lot of time taken into account, necessary for developers to eliminate the lack of functions that once worked perfectly, and then were removed in order to replace them with nothing, as ktejik noted).
source share