News for hackers. Stuff that matters.
Re:HTML Attributes vs. DOM Properties by bryancoxwell on Thursday April 25, 2024 @06:52AM (#40155848)
For custom elements you may want to store data or methods that modify the element’s behavior.
Re:HTML Attributes vs. DOM Properties by berkes on Thursday April 25, 2024 @11:23AM (#40158656)
Methods as in callbacks? So, code? Do you then store a closure or such? Or a pointer to one (i.e. the function/name)? And how or what data would modify behaviour?

As said: I'm unfamiliar with these concepts as I actively try to avoid them :)