Skip to content

Lack of non-whitespace before initial equation causes problem in IE #12

@Stevenparsons

Description

@Stevenparsons

It looks to me like there is a problem in IE if there is no non-whitespace character in the enclosing paragraph of the first MathJax equation in a document. I get the following:

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; MathPlayer 2.20; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3)
Timestamp: Tue, 2 Nov 2010 15:27:35 UTC
Message: 'parentNode' is null or not an object
Line: 35
Char: 3
Code: 0

Inserting a single character fixes the problem. See

http://173.11.52.201/~robertm/mathjax/test/IE-initial-space-bug-bad.html
http://173.11.52.201/~robertm/mathjax/test/IE-initial-space-bug-good.html

for repro pages. Hard to believe, but it seems to have been there a long time. It also affects the main test/index.html page in the distribution. Can anyone else repro, or have I hacked into something somewhere that I've forgotten about that broke it for me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions