4 <script type=
"application/javascript">
6 // Set up different target objects for expandos, one for each binding type.
7 window.targetWN = window;
8 window.targetDOM = new XMLHttpRequest();
9 window.targetJS = new Date();
12 function placeExpando(name, val, target) {
16 // If val === null, then we shouldn't have access.
17 function checkExpando(name, val, target, msg) {
19 ok(name in target, msg);
21 is(target[name], val,
"Got the right expando value");
22 } catch(e) { ok(false,
"Threw when accessing same-origin expando"); }
25 ok(!(name in target), msg);
31 <body onload=
"setup();">
32 <span>Salut, Ma Cherise. ;-)
</span>