<!DOCTYPE html> <html> <head> <title></title> <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <script src="../src/jquery.cookie.js"></script> <script> try { Object.defineProperty(document, "cookie", { get: function() { return "first=one; ; second=two"; } }); window.testValue = $.cookie("second"); window.ok = true; } catch (er) { } </script> </head> <body> </body> </html>