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
The basic premise of this algorithm is to walk all searchable text nodes within a block, collecting them into a list. The list is then concatenated into a single string in which we can search, using the node list to determine offsets with a node so we can return a range.
I am opening this issue to discuss if "a block" is a concept that needs to be extended/refined when that algorithm is executed inside a <math> context.
This could be a very useful refinement, as linking to math-rich fragments is often appropriate when discussing scientific materials.
If there is interest, we can open a mirror issue in the WICG/scroll-to-text-fragment repository. I have checked all repositories for related issues - as far as I am aware this question not been discussed before.
Examples
Successful
Text fragments are available in chromium browsers, where they also match text nodes inside MathML. I will add 3 examples with screenshots.
Link to token element, first instance of <mi>ℝ</mi>
The URL Fragment Text Directives effort defines an algorithm "find a range from a text directive" which is applicable over
<math>
nodes. I find the following quote to be a great summary:I am opening this issue to discuss if "a block" is a concept that needs to be extended/refined when that algorithm is executed inside a
<math>
context.This could be a very useful refinement, as linking to math-rich fragments is often appropriate when discussing scientific materials.
If there is interest, we can open a mirror issue in the WICG/scroll-to-text-fragment repository. I have checked all repositories for related issues - as far as I am aware this question not been discussed before.
Examples
Successful
Text fragments are available in chromium browsers, where they also match text nodes inside MathML. I will add 3 examples with screenshots.
Link to token element, first instance of
<mi>ℝ</mi>
#:~:text=ℝ
Link to a textual fragment inside
<mtext>
#:~:text=Hodge%20Riemann%20property
Link to a range, starting at the first
<mi>det</mi>
determinant, and upto the end of the closing)
for its matrix.#:~:text=det,)
Unsuccessful
Link to text nodes in adjacent token elements (grandchildren in the same
<mrow>
), fails.#:~:text=𝑑−2
text=𝑑,−,2
is not a range.d,−
ord,2
could succeed, but it would not match the desired expression. Example:#:~:text=𝑑,2
Link to adjacent HTML text node and adjacent inline math
<mi>
, fails#:~:text=partition of 𝑑
#:~:text=partition of,𝑑
The text was updated successfully, but these errors were encountered: