Skip to content

Conversation

@dpvc
Copy link
Member

@dpvc dpvc commented May 17, 2016

This patches the copy of CSSStyleDeclaration to handle units of ex and a number of other missing units. The change really should only be in one line (the lengthRegEx), but since that is down inside a closure, I can't get my hands on it, so I have to replace the entire valueType() routine with a duplicate that uses my own copy of lengthRegEx. Resolves issue #233.

@pkra
Copy link
Contributor

pkra commented May 17, 2016

Travis fails one test -- but the basic SRE one. @zorkow could you check that out?

@dpvc could this use a test based on the underline example?

@dpvc
Copy link
Member Author

dpvc commented May 17, 2016

could this use a test based on the underline example?

Since it is a jsdom (or rather CSSStyleDeclaration) problem, not a mathjax-node problem, I'm not sure it needs a test here. If you want some tests for the various jsdom issues that we have patched, then I suppose that could be done, but I think it is not necessary.

@dpvc
Copy link
Member Author

dpvc commented May 17, 2016

PS, the tests passed when I ran them by hand, but I had an older copy of SRE. When I update that, the tests fail. :-(

@pkra
Copy link
Contributor

pkra commented May 17, 2016

Since it is a jsdom (or rather CSSStyleDeclaration) problem, not a mathjax-node problem, I'm not sure it needs a test here.

Sounds good to me.

@pkra
Copy link
Contributor

pkra commented May 24, 2016

The tests now pass thanks to @zorkow's fixes to SRE. Yay to travis for catching these.

@pkra pkra merged commit 83eeaf3 into develop May 24, 2016
@pkra pkra deleted the issue233 branch May 24, 2016 08:01
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

Successfully merging this pull request may close these issues.

3 participants