Bug 101691 - [test case] link continues to the end of the document when the link text contains <wbr>
Summary: [test case] link continues to the end of the document when the link text cont...
Status: RESOLVED DUPLICATE of bug 101678
Alias: None
Product: konqueror
Classification: Applications
Component: khtml parsing (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-17 14:23 UTC by Michael Olbrich
Modified: 2005-05-12 03:08 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
testcase (130 bytes, text/html)
2005-03-17 14:24 UTC, Michael Olbrich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Olbrich 2005-03-17 14:23:34 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

Whenever a <wbr> tag is included in the link text e.g.:

<nobr>Foo bar <a href="http://www.kde.org">My test <wbr>link text </a>Hello test test test.</nobr>

the link doesn't end after the </a> but continues until the end of the document. Links that come later in the document interrupt but don't end it.

I'm not sure if <wbr> is valid at that place, but at least it shouldn't break the link.
Comment 1 Michael Olbrich 2005-03-17 14:24:19 UTC
Created attachment 10162 [details]
testcase
Comment 2 hisham 2005-05-05 22:44:54 UTC
I confirm this bug. Running KDE 3.4.0 here, GoboLinux packages. This happens a lot on GMail Basic HTML view, often turning most of the message body into a big link. I checked the html output of GMail and isolated the problem to the presence of the tag within the link.

You don't even need the <nobr> tags, this will do to demonstrate the problem:

<html>
<body>
<a href="teste.html">Hello, <wbr>this is a test</a>. Is this still a link? It shouldn't be.
</body>
</html>

The problem, however, is a bit more general. While some tags like <br> and <img> don't affect the tag, others do. From what I tested, the problem manifests itself with unclosed block tags, such as <nobr>, <p> and <blockquote>. (Apparently, <wbr> is being treated erroneously as a block tag.)

<html>
<body>
<a href="teste.html">Hello, <p>this is a test</a>. Is this still a link? It shouldn't be.
</body>
</html>
Comment 3 Maksim Orlovich 2005-05-12 01:14:56 UTC

*** This bug has been marked as a duplicate of 101678 ***