Bradley Farias
bradleymeck.bsky.social
Bradley Farias
@bradleymeck.bsky.social
Working @socket.dev
Yup
May 28, 2025 at 5:58 PM
So for things like bsky.app/profile/brad... the number of characters change as case changes.
Things like elements being hidden / implicit whitespace (via CSS position/display/etc.) / CSS text-transform / etc. want innerText and I'm mapping between the range API and innerText. www.unicode.org/Public/UNIDA... shows some other cases where length changes.
www.unicode.org
May 28, 2025 at 5:39 PM
Things like elements being hidden / implicit whitespace (via CSS position/display/etc.) / CSS text-transform / etc. want innerText and I'm mapping between the range API and innerText. www.unicode.org/Public/UNIDA... shows some other cases where length changes.
www.unicode.org
May 28, 2025 at 2:50 PM
I'm being given the range via DOM Range so not really on me to segment it in particular as the range itself can be mid grapheme; CSS highlights API is based upon Range which is based upon .textContent ; however, bugs exist for a variety of reasons when crawling the DOM and innerText better
May 28, 2025 at 2:50 PM
I wish more state machine patterns allowed this easily
April 30, 2025 at 1:58 PM
We loved that idea at Socket as well so much we turned it into a product with optimize. Different goals a bit but similar
April 29, 2025 at 1:45 PM
Kind of? If your anchor is after your positioned element in HTML it won't be found via CSS.
April 29, 2025 at 12:24 AM