2
var 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
28
var str = "javascript:";
29
var anchor, anchorText;
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"));
42
<body onload="makeLinks();">
43
This 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>
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
52
<b>Expected results:</b>
53
no parse errors in the JavaScript console<br>
b'\\ No newline at end of file'