Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #13
Closed
Open
Issue created Nov 02, 2010 by Davide P. Cervone@dpvcContributor

IE problem introduced in SVN 621

In SVN 621, I changed the TeX preprocessor to fix a problem with Firefox and empty text nodes when they appear in pre-formatted text (it caused unwanted blank lines to appear). Apparently, IE removes these nodes automatically, so the fix causes an error when it tries to remove them again (the parentNode is null).

The fix is to add a check for null parentNode in tex2jax.js line 213, changing

if (search.open.nodeValue === "") 
  {search.open.parentNode.removeChild(search.open)}

to

if (search.open.nodeValue === "" && search.open.parentNode)
  {search.open.parentNode.removeChild(search.open)}

This is in my fork of MathJax. Sean, can you review this so that I can make the change? Thanks.

Davide

Assignee
Assign to
Time tracking