Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.4
-
None
-
None
-
Patch Available
Description
The parse-html plugin does not generate an outlink if the link has no anchor
For example the following HTML-Code does not create an Outlink:
<a href="example.com"></a>
The JUnit-Test TestDOMContentUtils tries to test this but fails since there is a comment inside the <a>-Tag.
TestDOMContentUtils.java
new String("<html><head><title> title </title>" + "</head><body>" + "<a href=\"g\"><!--no anchor--></a>" + "<a href=\"g1\"> <!--whitespace--> </a>" + "<a href=\"g2\"> <img src=test.gif alt='bla bla'> </a>" + "</body></html>"),
When you remove the comment the test fails.
TestDOMContentUtils.java Test fails
new String("<html><head><title> title </title>" + "</head><body>" + "<a href=\"g\"></a>" // no anchor + "<a href=\"g1\"> <!--whitespace--> </a>" + "<a href=\"g2\"> <img src=test.gif alt='bla bla'> </a>" + "</body></html>"),