EDIT: the following question was prompted by what seemed the only difference between two pages, one working correctly but not the other; see my answer below.
It seems that IE (at least versions 11 and 12) does not accept URLs such as
/a/b.js
used in contexts like
<script type="text/javascript" src="/a/b.js"></script>
I would appreciate any help on how to avoid this problem without resorting to using a URL of the form
http://somedomain/a/b.js
(the reason to not use this is that some browsers accept, eg.,
xyz
as meaning
http://www.xyz
but then block the use of resources with URLs starting as this last line by wrongly applying the Same Origin Policy).
Thanks in advance for any help!
I put this question because there were problems in a page using slash started URLs but not in a similar page using full URLs. Thanks to the comments by @CBroe and after more testing it is now clear that the issues detected are not caused by the syntax used in URLs. Instead the problems are with IE (versions 11 and 12, at least) that does not render MathJax formulas in some, but not all pages, and that sometimes, but not always even with the same page, gives a JS syntax error in a correct statement.
UPDATE: after getting more help from Peter Krautzberger and David Cervone of the MathJax team (https://groups.google.com/forum/#!topic/mathjax-users/hTq9MxEVYI0) and more tests the conclusions are as follows
<script type="text/x-mathjax-config">
<!--
MathJax.Hub.Config({ ... });
-->
</script>
while all other scripts in the pages, also using the HTML comment
delimiters in the same way, worked as expected//<![CDATA[
...
//]]>
type="text/javascript"
); the file contents needs no HTML comments nor CDATA sections; the new syntax for MathJax configurations, i.e., an assignment to the window.MathJax object, must be used.