[IE8] should only check rules of optional segments if param exists #58

Closed
millermedeiros opened this Issue Jun 21, 2012 · 0 comments

Projects

None yet

1 participant

@millermedeiros
Owner

Behavior of optional segments rules is different in IE8 than other browsers. Still didn't had time to investigate what causes the behavior.

This spec fails on IE8: https://github.com/millermedeiros/crossroads.js/blob/cb6b61456d3db05f6ce0ef6f1a4ca13196a0bc3e/dev/tests/spec/match.spec.js#L512-535

@millermedeiros millermedeiros added a commit that referenced this issue Jul 29, 2012
@millermedeiros Normalizes IE 7-8 RegExp behavior fixing many bugs.
Optional capturing groups are matched as an empty string on IE 7-8
while it is matched as `undefined` on other browsers. The global
flag also causes some undesired side effects on IE 7-8 so make
sure we reset the `RegExp.lastIndex` during `captureVals`.

 - closes #gh-58
 - closes #gh-59
 - closes #gh-60
 - closes #gh-61
 - closes #gh-62
 - closes #gh-63
7fe803e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment