Make text fragment matching match spec
The spec was recently updated in https://github.com/WICG/scroll-to-text-fragment/pull/148 to remove redundant restrictions on word boundaries. This CL makes the implementation match these updates and refactors the text fragment matching algorithm to more closely resemble the spec. This change actually fixes a few edge-cases. Updated tests to provide comprehensive coverage of the matching algorithm, linking test cases to individual algorithm steps. Bug: 1148178 Change-Id: Ia2621bcdf151e22b4029cfde3dd9e319e5fb281e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2533585 Commit-Queue: David Bokan <bokan@chromium.org> Reviewed-by:Nick Burris <nburris@chromium.org> Cr-Commit-Position: refs/heads/master@{#827079}
Showing
This diff is collapsed.
Please register or sign in to comment