Mayank on Nostr: i created a tiny (~10LOC) custom element to demonstrate how easy it can be to avoid ...
i created a tiny (~10LOC) custom element to demonstrate how easy it can be to avoid repetition of shadow dom templates.
why can't we have something like this built into #HTML? seems fairly safe and uncontroversial
https://www.mayank.co/notes/use-htmlPublished at
2024-05-31 05:01:35Event JSON
{
"id": "b423a80ca325d2ec3e454cdbb58d81b8e0c0d84148948a74256cc39a8c63b2b2",
"pubkey": "d9dfad0367daa5bbb34e523c49ecf19d3b7b64e252a4ffbcb8e5e87e33559c2b",
"created_at": 1717131695,
"kind": 1,
"tags": [
[
"t",
"html"
],
[
"proxy",
"https://front-end.social/users/mayank/statuses/112533942819734704",
"activitypub"
]
],
"content": "i created a tiny (~10LOC) custom element to demonstrate how easy it can be to avoid repetition of shadow dom templates.\n\nwhy can't we have something like this built into #HTML? seems fairly safe and uncontroversial\n\nhttps://www.mayank.co/notes/use-html",
"sig": "9fe8c7120d5cb03cf27b3ae8fb344acac735676dedf427efc2c91f6a8cd610dd6d80409acc03c57b5073102f99fd7e8f24fa603ee8838ddc03d595aca889e3cf"
}