WICG / scroll-to-text-fragment

Proposal to allow specifying a text snippet in a URL fragment
Other
589 stars 42 forks source link

Need additional continue in advancing to next non-whitespace position #189

Closed megangardner closed 2 years ago

megangardner commented 2 years ago

After implementing the subroutine as described here: https://wicg.github.io/scroll-to-text-fragment/#next-non-whitespace-position

I had issues when I was starting this subroutine at the end of a node, like when parsing this URL: https://blog.chromium.org/2019/12/chrome-80-content-indexing-es-modules.html#:~:text=the-,text,-parameter

Therefore, I added a step before 1.3. that was molded after 1.3 and 1.4 which was

bokand commented 2 years ago

Ah, yeah, I think you're right - thanks! I'll put up a fix shortly.