←back to thread

451 points todsacerdoti | 3 comments | | HN request time: 0.928s | source
Show context
interstice ◴[] No.45058930[source]
> You are allowed to just make up elements as long as their names contain a hyphen

RIP any semblance of using meaningful tags for machine readability I guess.

replies(4): >>45058975 #>>45059016 #>>45059216 #>>45062064 #
1. voat ◴[] No.45059016[source]
And even if they don't contain a hyphen! You can just <use> <anything> <you> <want>
replies(1): >>45060531 #
2. masklinn ◴[] No.45060531[source]
The soft-requirement for hyphens is a form of namespacing: nothing precludes whatwg from adding <use> or <want> elements to HTML in the future, and that would conflict with and possibly break your page.
replies(1): >>45062110 #
3. 1718627440 ◴[] No.45062110[source]
To prove your point, <use> already exists although in SVG. https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/E...