# HG changeset patch # User bpatel # Date 1370467914 25200 # Node ID 1c14c3a8ea14af0519d07ae10e6e20d61fc818cd # Parent 2e4b6a66aafe002abe44de9f515e9ebd847672ac 8015997: Additional improvement in Javadoc framing Reviewed-by: jjg diff -r 2e4b6a66aafe -r 1c14c3a8ea14 src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java Wed Jun 12 12:23:44 2013 +0100 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java Wed Jun 05 14:31:54 2013 -0700 @@ -312,7 +312,8 @@ " if (targetPage.indexOf(\":\") != -1 || (targetPage != \"\" && !validURL(targetPage)))" + DocletConstants.NL + " targetPage = \"undefined\";" + DocletConstants.NL + " function validURL(url) {" + DocletConstants.NL + - " if (!(url.indexOf(\".html\") == url.length - 5))" + DocletConstants.NL + + " var pos = url.indexOf(\".html\");" + DocletConstants.NL + + " if (pos == -1 || pos != url.length - 5)" + DocletConstants.NL + " return false;" + DocletConstants.NL + " var allowNumber = false;" + DocletConstants.NL + " var allowSep = false;" + DocletConstants.NL +