fix: chrome Element prototype doesn't have nodeName, switching to setAttribute