Open tomayac opened 4 years ago
One line summary of the issue here.
Links with Text Fragments risk to get parsed incorrectly.
Try to share:
https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting#wikiArticle:~:text=Use%20this%20method%20with%20Clients.claim()%20to,client%20and%20all%20other%20active%20clients.
This gets parsed as:
https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting#wikiArticle:~:text=Use%20this%20method%20with%20Clients.claim (only up until the parentheses)
(Source tweet)
Note that parentheses are fine to exist in URLs:
encodeURIComponent('(') // '('
The link to get completely parsed. A pattern to look for in URLs would be :~:text=.
:~:text=
When testing Text Fragments URLs, recall that t.co links don't work with text fragments due to crbug.com/1055455.
Spec definition: https://wicg.github.io/scroll-to-text-fragment/#syntax
One line summary of the issue here.
Links with Text Fragments risk to get parsed incorrectly.
Expected behavior
Try to share:
https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting#wikiArticle:~:text=Use%20this%20method%20with%20Clients.claim()%20to,client%20and%20all%20other%20active%20clients.
Actual behavior
This gets parsed as:
https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting#wikiArticle:~:text=Use%20this%20method%20with%20Clients.claim (only up until the parentheses)
(Source tweet)
Note that parentheses are fine to exist in URLs:
Expected behavior
The link to get completely parsed. A pattern to look for in URLs would be
:~:text=
.