export default function makesvgelement ( tag , attrs ) { const el = document . createElementNS ( 'http://www.w3.org/2000/svg' , tag ) ; for ( const k in attrs ) { if ( k in attrs ) { el . setAttribute ( k , attrs [ k ] ) ; } } return el ; }