<script>
var arr = new Array("var%20x=' ';",
"var%20x='#';",
"var%20x='$';",
"var%20x='%';",
"var%20x='&';",
"var%20x='/';",
"var%20x=':';",
"var%20x=';';",
"var%20x='<';",
"var%20x='=';",
"var%20x='>';",
"var%20x='?';",
"var%20x='@';",
"var%20x='[';",
"var%20x='\\';",
"var%20x=']';",
"var%20x='^';",
"var%20x='`';",
"var%20x='{';",
"var%20x='|';",
"var%20x='}';",
"var%20x='~';");
function makeLinks()
{
var str = "javascript:";
var anchor, anchorText;
for (key in arr)
{
anchor = document.createElement("a");
anchor.setAttribute("href", str+arr[key]);
anchorText = document.createTextNode(arr[key]);
anchor.appendChild(anchorText);
document.body.appendChild(anchor);
document.body.appendChild(document.createElement("br"));
}
}
</script>
<body onload="makeLinks();">
This test is for <a href="rdar://problem/5310312">rdar://problem/5310312</a> and can be run manually only.<br>
<a href="rdar://problem/5379908">rdar://problem/5379908</a> tracks the effort to enhance DRT to make this into a layout test.<br>
<br>
<b>Directions:</b>
<ol>
<li> drag each link below to the bookmarks bar to create bookmarks
<li> open the JavaScript console (in the debug menu)
<li> click on all the bookmarks you've just created
</ol>
<b>Expected results:</b>
no parse errors in the JavaScript console<br>
<br>
</body>