Skip to content

Commit d937a2f

Browse files
Add JSON polyfill to make tests pass for IE 6 and a note in the README
Also minify the polyfills using an online minifier, this file is externally maintained.
1 parent ec03a6d commit d937a2f

2 files changed

Lines changed: 11 additions & 94 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ Cookies.getJSON('name'); // => { foo: 'bar' }
121121
Cookies.getJSON(); // => { name: { foo: 'bar' } }
122122
```
123123

124+
**Note: To support IE6-8 you need to add the JSON-js polyfill: https://github.com/douglascrockford/JSON-js**
125+
124126
## Encoding
125127

126128
This project is [RFC 6265](http://tools.ietf.org/html/rfc6265#section-4.1.1) compliant. All special characters that are not allowed in the cookie-name or cookie-value are encoded with each one's UTF-8 Hex equivalent.

‎test/polyfill.js‎

Lines changed: 9 additions & 94 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)