File:  [parser3project] / parser3 / tests / 030.html
Revision 1.6: download - view: text, annotated - select for diffs - revision graph
Fri Sep 13 23:49:45 2024 UTC (23 months, 3 weeks ago) by moko
Branches: MAIN
CVS tags: HEAD
out of range expires check added

$cookie:a[
	$.value[a-value]
	$.expires[^date::create(2003;2;26)]
]

$cookie:b[
	$.value[b-value]
	$.expires[^date::create(2003;2;20)]
]

$cookie:s[
	$.value[session-value]
	$.expires[session]
]

e1: ^try-catch{
	$cookie:z[
		$.value[zzz-value]
		$.expires[zzz]
	]
}

e2: ^try{
	$cookie:x[
		$.value[xxx-value]
		$.expires(-5000*365)
	]
}{
	$exception.handled(true)
	Exception type: $exception.type
}

^json:string[$cookie:fields; $.indent(1) ]

E-mail: