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-elementstwo 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
Published at
2024-08-02 23:44:56Event JSON
{
"id": "c4d7b78aeda71285e7408e390840d70c42caa52d6e47384ffd5af5575982670d",
"pubkey": "d9dfad0367daa5bbb34e523c49ecf19d3b7b64e252a4ffbcb8e5e87e33559c2b",
"created_at": 1722642296,
"kind": 1,
"tags": [
[
"t",
"html"
],
[
"t",
"readtheplatform"
],
[
"proxy",
"https://front-end.social/users/mayank/statuses/112895085526929548",
"activitypub"
]
],
"content": "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\n\ntwo points already stand out so far:\n\n- \"The constructor should be used to set up initial state and default values, and to set up event listeners and possibly a shadow root.\"\n- \"Any namespace-less attribute […] may be specified on an autonomous custom element.\"\n\n#HTML #ReadThePlatform",
"sig": "d1f0411dd5464f3b170253a29a7525651b1fefab2b3817cc6d1f8a89a408c930a01e378a0785079df8c2222ae90b8d6e1f66cdbf520412538af48bc79ebc4870"
}