-
Bug
-
Resolution: Fixed
-
P4
-
6
-
b04
-
generic
-
generic
-
Verified
The .html that is generated for
<a href='http://....'.
is ok for the page that contains it, but if the snippet has to be included
in an index/summary... page, it gets mangled. As if javadoc sees
the ' and thinks that what follows is a relative pathname - it prepends
the current location to the http://... and creates a broken link.
This does not occur if double quotes are used.
As far as I can tell , the above is legal html.
For example, see src/share/classes/org/w3c/dom/Text.java. It contains this:
-----
* and represents the textual content (termed <a href='http://www.w3.org/TR/2004/REC-xml-20040204#syntax'>character data</a> in XML) of an <code>Element</code> or <code>Attr</code>. If there is no
-----
Which causes this bad link:
http://java.sun.com/j2se/1.5.0/docs/api/org/w3c/dom/'http://www.w3.org/TR/2004/REC-xml-20040204#syntax'
in file
http://java.sun.com/j2se/1.5.0/docs/api/index-files/index-20.html
<a href='http://....'.
is ok for the page that contains it, but if the snippet has to be included
in an index/summary... page, it gets mangled. As if javadoc sees
the ' and thinks that what follows is a relative pathname - it prepends
the current location to the http://... and creates a broken link.
This does not occur if double quotes are used.
As far as I can tell , the above is legal html.
For example, see src/share/classes/org/w3c/dom/Text.java. It contains this:
-----
* and represents the textual content (termed <a href='http://www.w3.org/TR/2004/REC-xml-20040204#syntax'>character data</a> in XML) of an <code>Element</code> or <code>Attr</code>. If there is no
-----
Which causes this bad link:
http://java.sun.com/j2se/1.5.0/docs/api/org/w3c/dom/'http://www.w3.org/TR/2004/REC-xml-20040204#syntax'
in file
http://java.sun.com/j2se/1.5.0/docs/api/index-files/index-20.html