5 ms·
I think that person is talking about the HTMLElement interface is essentially a JS object and how you can set properties on it. e.g. element.foo = 123; vs
by e111077 10y ago
I think that person is talking about the HTMLElement interface is essentially a JS object and how you can set properties on it. e.g.
element.foo = 123;
vs
element.setAttribute('foo', '123');
- floatboth 10y agoExactly. I accidentally wrote "attributes" instead of "properties" :D