From 55adb1cccdd7bbe46530eed89b7a378c85886e96 Mon Sep 17 00:00:00 2001 From: Peter Krautzberger Date: Tue, 15 Jun 2021 09:18:36 +0200 Subject: [PATCH] fix: prevent overset from allowing movable limits Matches UnderOver behavior. Fixes MathJax/MathJax#2709 --- ts/input/tex/base/BaseMethods.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts/input/tex/base/BaseMethods.ts b/ts/input/tex/base/BaseMethods.ts index fb5fc6b87..9aa6078be 100644 --- a/ts/input/tex/base/BaseMethods.ts +++ b/ts/input/tex/base/BaseMethods.ts @@ -647,7 +647,8 @@ BaseMethods.UnderOver = function(parser: TexParser, name: string, c: string, sta BaseMethods.Overset = function(parser: TexParser, name: string) { // @test Overset const top = parser.ParseArg(name), base = parser.ParseArg(name); - if (NodeUtil.getAttribute(base, 'movablelimits') || NodeUtil.getProperty(base, 'movablelimits')) { + let symbol = NodeUtil.getForm(base); + if ((symbol && symbol[3] && symbol[3]['movablelimits'])) { NodeUtil.setProperties(base, {'movablelimits': false}); } const node = parser.create('node', 'mover', [base, top]);