You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Triple-click the paragraph “Vulgar Fraction Three Quarters. Latin-1 Supplement.” This should select (highlight) the paragraph.
Generate a link with this selection via the context menu.
Open the URL with Firefox. The paragraph is highlighted, as expected.
Open the same URL with Chrome. The paragraph isn’t highlighted.
details
In the generated link, the text value starts with a space, which is probably because the textContent of the <p> itself starts with the space. However, Chrome might trim the space when matching. If I manually remove the %20 in text field, Chrome would be able to highlight the text, as expected. I’m not sure whether this issue counts as a bug or a feature request: it does sound broken, but technically it’s kind of expected (we might as well blame the website).
The text was updated successfully, but these errors were encountered:
(Migrated from @FranklinYu's GoogleChromeLabs/link-to-text-fragment#60.)
Platform
Steps to reproduce
details
In the generated link, the
text
value starts with a space, which is probably because thetextContent
of the<p>
itself starts with the space. However, Chrome might trim the space when matching. If I manually remove the%20
intext
field, Chrome would be able to highlight the text, as expected. I’m not sure whether this issue counts as a bug or a feature request: it does sound broken, but technically it’s kind of expected (we might as well blame the website).The text was updated successfully, but these errors were encountered: