3 ms·
> 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.
by interstice 1y ago
> 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.
- rebane2001 1y agoit's a lot more readable than a bunch of divs if an element that semantically fits your needs already exists you don't need to make up an element in the first place
- mixmastamyk 1y agoHmmm, I thought you had to register these with JS first, but my browser seems to recognize them.
- voat 1y agoAnd even if they don't contain a hyphen! You can just <use> <anything> <you> <want>
- masklinn 1y agoThe 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.
- 1718627440 1y agoTo prove your point, <use> already exists although in SVG. https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/use https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/E...
- nozzlegear 1y agoWhat's the use case for machine readability these days?
- timeon 1y agoWe could have that with XHTML+DTDs...