balupton/history.js — Issue #157: Including HTML5-only jQuery script in IE7 gives "'undefined' is null or not an object"
Author: orls
Created: 2012-02-06 11:28:59+00:00
State: open

I'm using the HTML5-only version of History.js, as hash-fallbacks aren't appropriate for our site architecture at the moment but we require normalization of behaviour in modern browsers. I haven't wrapped the script in conditional comments, so older browsers are still loading and parsing the scripts. I appreciate this is less than ideal but that's a separate issue with it's own reasons.

Currently in IE7 the HTML5-only jQuery version is throwing "'Undefined' is null or not an object" -- I'm using the compressed bungled version but it looks like [line 30 of Core](https://github.com/balupton/history.js/blob/master/scripts/uncompressed/history.js#L30), i.e. JSON object isn't defined.

Does this count as a bug, or are conditional-comments the expected usage for older browsers?