Honestly, just stick with `getAttribute()`. It’s universal and avoids the whole camelCase confusion.
Example: `element.getAttribute('data-thing')`
No surprises, no browser quirks. Simple.
For performance, it’s technically faster, but we’re talking microseconds.
Example: `element.getAttribute('data-thing')`
No surprises, no browser quirks. Simple.
For performance, it’s technically faster, but we’re talking microseconds.
