Re:How to manage HTML DOM with vanilla JavaScript only?
by seangrogg on Thursday April 02, 2020 @12:10PM
(#22760543)
A DOM node's attributes are strongly typed, but it is an object and you can still set Node.foo = barObject if you're so inclined. Not saying it's not without it's tradeoffs, but if you want state housed in the DOM rather than another state manager it's not hard to conceptualize.
[ Parent
| on HN ]
There are no comments on this comment yet.