WICG / scroll-to-text-fragment

Proposal to allow specifying a text snippet in a URL fragment
Other
586 stars 43 forks source link

Explain searching for   and &nbsp in the DOM #250

Open hsivonen opened 8 months ago

hsivonen commented 8 months ago

https://wicg.github.io/scroll-to-text-fragment/#next-non-whitespace-position searches for literal   and &nbps appearing in the DOM. This is strange enough that it could use an informative note explaining why these strings are special-cased. That is, why are these expected to appear in the post-parse DOM and often enough to require special handling?

bokand commented 7 months ago

I think this is a carry-over from an early iteration of the spec and likely a bug. Will address.