Skip to content
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

[Math Processing Error] with <mo>&ApplyFunction;</mo> #410

Closed
fred-wang opened this issue Mar 14, 2013 · 4 comments

Comments

Projects
None yet
2 participants
@fred-wang
Copy link
Contributor

commented Mar 14, 2013

testcase:

  <math>
     <mo>&ApplyFunction;</mo>
  </math>

line: "prev is undefined", "http://localhost/MathJax/unpacked/jax/element/mml/jax.js", 583

if (this.data.join("") === "\u2061") {
        // force previous node to be texClass OP, and skip this node
        prev.texClass = MML.TEXCLASS.OP;
        this.texClass = this.prevClass = MML.TEXCLASS.NONE;
        return prev;
      }

@dpvc It seems to me that can just skip this block when "prev" is undefined. Is that correct?

@dpvc

This comment has been minimized.

Copy link
Member

commented Mar 14, 2013

Yes, that looks right, though I suppose setting this.texClass = this.prevClass = MML.TEXCLASS.NONE could be set even when prev is not defined.

@fred-wang

This comment has been minimized.

Copy link
Contributor Author

commented Mar 14, 2013

OK, I will do that. And in that case I can also return prev immeditely, since that's what adjustTeXclass will do anyway.

@fred-wang

This comment has been minimized.

Copy link
Contributor Author

commented Mar 14, 2013

eeb6389

Crashtests/issue410.html

=> In testsuite

@dpvc

This comment has been minimized.

Copy link
Member

commented Mar 20, 2013

Looks good. I'll merge it.

dpvc pushed a commit to dpvc/MathJax that referenced this issue Mar 20, 2013

@dpvc dpvc closed this May 17, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.