このエラーメッセージに関する原因と対処に関して説明します。
エラーメッセージ(英語):
setattribute is not a function
対処
関連リンク
JS setattribute is not a function- Firefox, chrome - Stack Overflowstackoverflow.com/.../js-setattribute-is-not-a-function-fi...
https://stackoverflow.com/questions/19650768/js-setattribute-is-not-a-function-firefox-chrome
element.setAttribute is not a function
https://stackoverflow.com/questions/35626658/element-setattribute-is-not-a-function
TypeError: node.setAttribute is not a function
https://stackoverflow.com/questions/15686504/typeerror-node-setattribute-is-not-a-function