htm icon indicating copy to clipboard operation
htm copied to clipboard

Component end-tags ("<//>") need link / explanation

Open broofa opened this issue 5 years ago • 3 comments
trafficstars

The <//> notation mentioned in the README for closing an element is unusual and not well-known (right?) Is this a standard convention? If so, can you add a link to the standard in question so readers can decide if it's a convention worth adopting. If not - if this is a contrivance invented for this module - then it would be worth mentioning that so readers know that using this construct may break if/when they migrate to other JSX/React implementations.

Thanks!

broofa avatar Sep 01 '20 20:09 broofa

Any notation for closing element can be used, as far as it starts with </, eg. </>. That particular notation <//> is HTM@1 legacy.

dy avatar Sep 02 '20 00:09 dy

HTM@1 legacy

Are you referring to this module, htm version 1 (as opposed to, e.g., the XHTML spec)? So... not a convention anyone is using outside of this module? If so it would be good to note that in the README.

broofa avatar Sep 02 '20 03:09 broofa

@broofa htm version 1. I believe the readme mentions this: https://github.com/developit/htm#improvements-over-jsx

developit avatar Sep 21 '20 20:09 developit

[Closing out issues I authored that appear to be stagnant.]

broofa avatar Apr 03 '23 17:04 broofa