File: malformed_cookie.html

package info (click to toggle)
jquery-goodies 12-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,364 kB
  • sloc: javascript: 7,848; xml: 308; makefile: 82; php: 48; sql: 39
file content (18 lines) | stat: -rw-r--r-- 424 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!doctype html>
<html>
	<head>
		<title></title>
		<script src="http://code.jquery.com/jquery-1.9.0.min.js"></script>
		<script 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>