langtools/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java
changeset 18404 a5aaa0341fec
parent 18402 8035e3fbae01
child 19907 41ae54351dea
child 21026 b35314edf87a
equal deleted inserted replaced
18403:c70f67529320 18404:a5aaa0341fec
   312                 "    if (targetPage != \"\" && targetPage != \"undefined\")" + DocletConstants.NL +
   312                 "    if (targetPage != \"\" && targetPage != \"undefined\")" + DocletConstants.NL +
   313                 "        targetPage = targetPage.substring(1);" + DocletConstants.NL +
   313                 "        targetPage = targetPage.substring(1);" + DocletConstants.NL +
   314                 "    if (targetPage.indexOf(\":\") != -1 || (targetPage != \"\" && !validURL(targetPage)))" + DocletConstants.NL +
   314                 "    if (targetPage.indexOf(\":\") != -1 || (targetPage != \"\" && !validURL(targetPage)))" + DocletConstants.NL +
   315                 "        targetPage = \"undefined\";" + DocletConstants.NL +
   315                 "        targetPage = \"undefined\";" + DocletConstants.NL +
   316                 "    function validURL(url) {" + DocletConstants.NL +
   316                 "    function validURL(url) {" + DocletConstants.NL +
   317                 "        if (!(url.indexOf(\".html\") == url.length - 5))" + DocletConstants.NL +
   317                 "        var pos = url.indexOf(\".html\");" + DocletConstants.NL +
       
   318                 "        if (pos == -1 || pos != url.length - 5)" + DocletConstants.NL +
   318                 "            return false;" + DocletConstants.NL +
   319                 "            return false;" + DocletConstants.NL +
   319                 "        var allowNumber = false;" + DocletConstants.NL +
   320                 "        var allowNumber = false;" + DocletConstants.NL +
   320                 "        var allowSep = false;" + DocletConstants.NL +
   321                 "        var allowSep = false;" + DocletConstants.NL +
   321                 "        var seenDot = false;" + DocletConstants.NL +
   322                 "        var seenDot = false;" + DocletConstants.NL +
   322                 "        for (var i = 0; i < url.length - 5; i++) {" + DocletConstants.NL +
   323                 "        for (var i = 0; i < url.length - 5; i++) {" + DocletConstants.NL +