by jakelazaroff · 9y ago · 0 comments
Could you please link to a reference? I've never heard of JavaScript attributes and I can't find any reference on MDN.
element.foo = 123;
element.setAttribute('foo', '123');