1<script>
2var arr = new Array("var%20x=' ';",  // Space    %20
3                    "var%20x='#';",  // #        %23
4                    "var%20x='$';",  // $        %24
5                    "var%20x='%';",  // %        %25
6                    "var%20x='&';",  // &        %26
7                    "var%20x='/';",  // /        %2F
8                    "var%20x=':';",  // :        %3A
9                    "var%20x=';';",  // ;        %3B
10                    "var%20x='<';",  // <        %3C
11                    "var%20x='=';",  // =        %3D
12                    "var%20x='>';",  // >        %3E
13                    "var%20x='?';",  // ?        %3F
14                    "var%20x='@';",  // @        %40
15                    "var%20x='[';",  // [        %5B
16                    "var%20x='\\';",  // \        %5C
17                    "var%20x=']';",  // ]        %5D
18                    "var%20x='^';",  // ^        %5E
19                    "var%20x='`';",  // '        %60
20                    "var%20x='{';",  // {        %7B
21                    "var%20x='|';",  // |        %7C
22                    "var%20x='}';",  // }        %7D
23                    "var%20x='~';"); // ~        %7E
24
25    
26function makeLinks()
27{
28    var str = "javascript:";
29    var anchor, anchorText;
30    for (key in arr)
31    {
32        anchor = document.createElement("a");
33        anchor.setAttribute("href", str+arr[key]);
34        anchorText = document.createTextNode(arr[key]);
35        anchor.appendChild(anchorText);
36        document.body.appendChild(anchor);
37        document.body.appendChild(document.createElement("br"));
38    }
39}
40
41</script>
42<body onload="makeLinks();">
43This test is for <a href="rdar://problem/5310312">rdar://problem/5310312</a> and can be run manually only.<br>
44<a href="rdar://problem/5379908">rdar://problem/5379908</a> tracks the effort to enhance DRT to make this into a layout test.<br>
45<br>
46<b>Directions:</b>
47<ol>
48<li> drag each link below to the bookmarks bar to create bookmarks
49<li> open the JavaScript console (in the debug menu)
50<li> click on all the bookmarks you've just created
51</ol>
52<b>Expected results:</b>
53no parse errors in the JavaScript console<br>
54<br>
55</body>