Giter Club home page Giter Club logo

Comments (7)

dpvc avatar dpvc commented on June 12, 2024

The command you give works for me and displays properly in both browsers. Are you sure you checked out the develop branch of MathJax, as indicated in the instructions? The font cache support is only in the develop branch, so you need that for the font caching to work as expected.

from mathjax-node.

sloonz avatar sloonz commented on June 12, 2024

Added some debug traces into https://github.com/mathjax/MathJax-node/blob/master/bin/page2svg

Line 60 (document.body.innerHTML = result.html) seems to be the culprit : result.html has xlink:href, but document.body.innerHTML has just href

After some additionals tests, looks like the issue is there with jsdom 1.0.0-pre.1 but not 0.11.1.

from mathjax-node.

sloonz avatar sloonz commented on June 12, 2024

Created an issue in jsdom : jsdom/jsdom#861

from mathjax-node.

dpvc avatar dpvc commented on June 12, 2024

Thanks for tracking this down. In HTML5, namespaces are deprecated, so I suspect that jsdom has removed them to be HTML5 compliant. This actually also happens with some versions of WebKit (not sure of the current status of that). I may have to add code to MathJax-node to put back the xlink prefixes (like as necessary in the old phantom.js implementation).

from mathjax-node.

domenic avatar domenic commented on June 12, 2024

I want to assure you guys that jsdom intends to support what browsers support, and it sounds like browsers support namespaces (even though they are dumb :P). That said, you should narrow your semver-range to not always get the latest jsdom, since that's kind of dangerous.

As for the 1.0.0 plans, I hope we can fix this regression before releasing, but if not it will be in a follow-up patch release. See more over in our issue tracker.

from mathjax-node.

sloonz avatar sloonz commented on June 12, 2024

Fixed in jsdom 1.0.0-pre.2

from mathjax-node.

dpvc avatar dpvc commented on June 12, 2024

@sloonz, thanks for the update. @domenic, thanks for fixing this in jsdom!

from mathjax-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.