News for hackers. Stuff that matters.
Re:HTML Attributes vs. DOM Properties by fregante on Thursday April 25, 2024 @01:37AM (#40153827)
This is a good read for JS developers.

TL;DR: they’re not the same thing. Only sometimes they match (e.g. `id`) but often they don’t.

Something fun: JSX does not use attributes, even if they look like it. That’s why they have unusual naming/formatting (`htmlFor` and `className`)

There are no comments on this comment yet.