-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix autolinking with highlighted search results #19576
Fix autolinking with highlighted search results #19576
Conversation
a1ac843
to
2a19f00
Compare
19774c1
to
bd3f03b
Compare
/botio integrationtest |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/d4bd4d6a8c6fbb2/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/0c51e5d9108c259/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/d4bd4d6a8c6fbb2/output.txt Total script time: 12.63 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/0c51e5d9108c259/output.txt Total script time: 29.53 mins
|
I didn't see that failure locally, I'll check what it is. |
bd3f03b
to
3a6a3c7
Compare
The current logic assumes that all spans in the text layer contain only one text node, and thus that the position information returned by `highlighter._convertMatches` can be directly used on the element's only child. This is not true in case of highlighted search results: they will be injected in the DOM as `<span>` elements, causing the `<span>`s in the text layer to have more than one child. This patch fixes the problem by properly converting the (span, offset) pair in a (textNode, offset) pair that points to the right text node.
3a6a3c7
to
b47d815
Compare
/botio integrationtest |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @nicolo-ribaudo received. Current queue size: 0 Live output at: http://54.193.163.58:8877/9a429857156e305/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @nicolo-ribaudo received. Current queue size: 0 Live output at: http://54.241.84.105:8877/e1e4d09ffad0fa6/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/e1e4d09ffad0fa6/output.txt Total script time: 12.22 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/9a429857156e305/output.txt Total script time: 28.17 mins
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me, thank you.
Fixes #19465