cristinafsanz
7/25/2019 - 7:57 AM

https://twitter.com/joelnet/status/1153779385306144769

const element = document.querySelector('#myimage')
const props = {
  src: 'path-to-svg.svg',
  alt: 'a good description for the image'
}

Object.assign(element, props)