Re:Web apps in a single, portable, self-updating, vanilla HT...
by criswell on Monday August 18, 2025 @09:51AM
(#44940593)
This is a really cool idea. The use of custom attributes without `data-` before it makes me a little nervous. Is that a concern here? I saw `project` being used on elements and if that's officially used for something eventually can it muddy things up?
[ Parent
| on HN ]
Re:Web apps in a single, portable, self-updating, vanilla HT...
by chuckadams on Monday August 18, 2025 @01:27PM
(#44943140)
HTML5 is surprisingly lax about using arbitrary attributes and tags: any attribute or tag without a dash in it could potentially conflict with a future version of the spec, but it doesn't go out of its way to forbid them either. data-* attributes are special in that they appear in the .dataset property in the DOM, but anything with a dash should be future-proof against the HTML spec.