Join Nostr
2024-08-02 23:44:56 UTC

Mayank on Nostr: reading the custom elements specification this evening. it's surprisingly digestible, ...

reading the custom elements specification this evening. it's surprisingly digestible, and way more insightful than the usual docs. https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements

two points already stand out so far:

- "The constructor should be used to set up initial state and default values, and to set up event listeners and possibly a shadow root."
- "Any namespace-less attribute […] may be specified on an autonomous custom element."

#HTML #ReadThePlatform