What is Nostr?
The Spicy Web /
npub1ue4…t0qf
2023-05-15 16:15:10

The Spicy Web on Nostr: This is cool…down the road if you need to get the tag name of a defined custom ...

This is cool…down the road if you need to get the tag name of a defined custom element, you'll be able to use customElements.getName. For example:

```js
customElements.getName(MyGroovyElement)

// would return my-groovy-element
```

It's landed in Safari TP, other browsers to follow. See:
https://github.com/whatwg/html/pull/9195

#WebComponents #HTML
Author Public Key
npub1ue4dlgypl75a7tmvmgs8tfmuljcs8775l20qu0jfm3fdxtnggx6s3gt0qf