Baldur Bjarnason on Nostr: This is absolutely a spec issue. As in there is none. Programmatic discovery and ...
This is absolutely a spec issue. As in there is none. Programmatic discovery and manipulation of selection ranges inside shadow roots is simply undefined, which is why we now have three different behaviours
Until there’s a genuine consensus on what is supposed to happen, the only sensible thing is to avoid shipping anything that requires text selection (i.e. any form of text editing or highlighting) in a shadow root.
https://mastodon.social/@marijn/112234316153174392Published at
2024-04-08 09:25:08Event JSON
{
"id": "cd42062a735f74c1b4083295c9b6eaf8a82f523e13bbcc7bdf825cf1269f6149",
"pubkey": "b8fcf3fa16a90df5527b31715505e245a962248ce8e86cdbf914151bcb9998fc",
"created_at": 1712568308,
"kind": 1,
"tags": [
[
"proxy",
"https://toot.cafe/users/baldur/statuses/112234876638458929",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://toot.cafe/users/baldur/statuses/112234876638458929",
"pink.momostr"
]
],
"content": "This is absolutely a spec issue. As in there is none. Programmatic discovery and manipulation of selection ranges inside shadow roots is simply undefined, which is why we now have three different behaviours\n\nUntil there’s a genuine consensus on what is supposed to happen, the only sensible thing is to avoid shipping anything that requires text selection (i.e. any form of text editing or highlighting) in a shadow root.\nhttps://mastodon.social/@marijn/112234316153174392",
"sig": "d6f7d8e898cd49a58ec352d2e299de059988ac8733b5fece5d6db2fb8219f378b8a919a4edb4c4973dde7b9d8c1c8dc1ca8d2c38bd7d529f9e56ddcbce6ea583"
}