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

[v3] LiteAdaptor's elementsByClass() fails to return any elements. #2278

Closed
dpvc opened this issue Dec 31, 2019 · 0 comments
Closed

[v3] LiteAdaptor's elementsByClass() fails to return any elements. #2278

dpvc opened this issue Dec 31, 2019 · 0 comments
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3.0

Comments

@dpvc
Copy link
Member

dpvc commented Dec 31, 2019

The LiteAdaptor's elementsByClass() throws an error about the class.find() argument. In particular

https://github.com/mathjax/MathJax-src/blob/28233c6d2d3ffea10cd223c11903e4e97079a8ce/ts/adaptors/liteAdaptor.ts#L197-L198

should use classes.includes(name) rather than classes.find(name), and tags.push(n) rather than tags = [].

dpvc added a commit to mathjax/MathJax-src that referenced this issue Dec 31, 2019
@dpvc dpvc added Accepted Issue has been reproduced by MathJax team Ready for Review Test Needed labels Dec 31, 2019
@dpvc dpvc added this to the MathJax v3.0.1 milestone Dec 31, 2019
dpvc added a commit to mathjax/MathJax-src that referenced this issue Jan 3, 2020
Fix LiteAdaptor's search for elements by class. mathjax/MathJax#2278.
@dpvc dpvc added Merged Merged into develop branch and removed Ready for Review labels Jan 3, 2020
@dpvc dpvc added Fixed v3.0 and removed Merged Merged into develop branch labels Feb 10, 2020
@dpvc dpvc closed this as completed Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3.0
Projects
None yet
Development

No branches or pull requests

1 participant