some dumb 128 byte golf i wrote for when youre not allowed to use innerhtml (l=>...

@rebane2001@infosec.exchange

some dumb 128 byte golf i wrote for when youre not allowed to use innerhtml

(l=>l[y=`split`]`="`.map(r=>(a&&e.setAttribute(a,...r[y]`"`),a=r[y]` `.pop()),e=document.createElement(l[y]` `[a=0].slice(1)))&&e)(`<img src="pic.png" style="border 1px solid" foo="bar baz">`)