inTabOrder: false, setting mostly ignored and preference not saved

44 views
Skip to first unread message

Noel Lotz

unread,
Aug 12, 2021, 2:39:44 PM8/12/21
to MathJax Users
In my MathJax object, I set inTabOrder: false; however, math remains in the tab order. When I open the context menu to check, the include in tab order setting is unchecked. If I check it and then uncheck it, it will remove math from the tab order. I thought "this could still work. I'll set it to true in my configuration and allow users to turn it off." This works, but only while I'm on the page. If I refresh the browser the setting is lost. I looked in local storage and the setting is saved there but is ignored. To get it to skip math when tabbing, I have to repeat the step above: check the setting and then uncheck it. 

Thinking I'm doing something wrong, I tried it with MathJax's samples and got the same results. I tried saving other preferences and they work as expected. The following is my set up:
 <script>
   MathJax = {
  options: {
    enableMenu: true,          // set to false to disable the menu
    menuOptions: {
      settings: {
        texHints: true,        // put TeX-related attributes on MathML
        semantics: false,      // put original format in <semantic> tag in MathML
        zoom: 'Click',        // or 'Click' or 'DoubleClick' as zoom trigger
        zscale: '150%',        // zoom scaling factor
        renderer: 'CHTML',     // or 'SVG'
        alt: false,            // true if ALT required for zooming
        cmd: false,            // true if CMD required for zooming
        ctrl: false,           // true if CTRL required for zooming
        shift: false,          // true if SHIFT required for zooming
        scale: 1,              // scaling factor for all math
        inTabOrder: false,      // true if tabbing includes math

        assistiveMml: true,    // true if hidden assistive MathML should be generated for screen readers
        collapsible: false,    // true if complex math should be collapsible
        explorer: true,       // true if the expression explorere should be active
      },
    }
  }
};
 </script>
    <script
      type="text/javascript"
      id="MathJax-script"
      async
    ></script>

Volker Sorge

unread,
Aug 17, 2021, 1:05:28 PM8/17/21
to MathJax Users
If explorer is set to true items will be put into the tab order as the explorer can only be activated if the element is focusable.
Try setting explorer to false if that helps.

Noel Lotz

unread,
Aug 17, 2021, 5:31:07 PM8/17/21
to MathJax Users
Thanks for the suggestion, but no change. I'm really thinking this is a bug. I'm using version 3.2.0.

To reproduce using the MathJax samples page, go the samples:
  1. Tab to some math.
  2. Right click and uncheck "include in tab order" (if you previously unchecked the option, you'll see that the option is indeed unchecked, but the setting was ignored.)
  3. Confirm math is no longer included in the tab order
  4. Refresh the window
  5. The expected behavior is tabbing will skip math; however, tab to some math (include in tab order should still be unchecked because of saved preferences)
  6. Confirm that the "include in tab order" option is indeed unchecked.
  7. Check the "include and tab order" option and then uncheck it. Math should no longer be included in the tab order. 
The takeaway is after refreshing the window, it remembers your preference (looking in local storage confirms this); however, it ignores the menu setting and includes math in the tab order. I've tried other settings like explorer and click to zoom and they work as expected. The only way I can force it remove math from the tab order by default is to disable the menu (which I don't want to do).


Reply all
Reply to author
Forward
0 new messages