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

Mathjax does not work in IE8 #1

Closed
johanvanr opened this issue Jul 5, 2012 · 3 comments
Closed

Mathjax does not work in IE8 #1

johanvanr opened this issue Jul 5, 2012 · 3 comments
Assignees

Comments

@johanvanr
Copy link

First of all: Great plugin!

Mathjax does not work in IE8 (XP and Windows 7). It causes the error below.
It works fine in Firefox 13.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; MS-RTC LM 8)
Timestamp: Thu, 5 Jul 2012 20:53:26 UTC

Message: Syntax error
Line: 1
Char: 6
Code: 0
URI: ******/dokuwiki/doku.php?id=playground:playground

@liffiton
Copy link
Owner

Thanks for reporting that! (Sorry for the slow reply -- I've been on vacation.)

It looks like this is an issue with Dokuwiki itself, actually. It creates script blocks that IE chokes on, while Firefox handles them well. I've submitted a bug report to the Dokuwiki project.

For now, the best workaround might be to edit inc/template.php and change lines 375-377 (assuming the 2012-01-25 "Angua" release) in _tpl_metaheaders_action() to be:

$attr['_data'] = "/*<![CDATA[*/\n".
    $attr['_data'].
    "\n/*!]]>*/";

Alternatively, you can go into the configuration manager and clear the contents of the plugin»mathjax»config entry. This will disable the single-dollar-sign syntax for inline math, but I believe that \( ... \) should still work.

I'll leave this issue open until Dokuwiki is updated or another fix is found. Perhaps there are some better workarounds, as well.

@ghost ghost assigned liffiton Jul 18, 2012
@liffiton
Copy link
Owner

A fix has been committed to dokuwiki here: dokuwiki/dokuwiki@09f791c.

It looks like it will be included in the next major release ("autumn 2012"). The workaround(s) above will work until then, and the new release should fix the problem for good.

@johanvanr
Copy link
Author

The problem is indeed solved after editing template.php.
Thanks a lot for the service!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants