Summary: | khtml dont close links with wbr tag | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | gallir |
Component: | khtml parsing | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hisham, mail4ilia, roman.kalukiewicz |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
gallir
2005-03-17 11:18:09 UTC
I forgot it, a test case: <a href="http://www.kde.org" target=_blank>Word1<wbr>Word2<wbr>Word3</a> <br> Other text, should not be linked. SVN commit 411684 by carewolf: WBR does have higher nesting than links (similar to WebCore now) BUG: 101678 M +4 -4 trunk/KDE/kdelibs/khtml/html/dtd.cpp --- trunk/KDE/kdelibs/khtml/html/dtd.cpp #411683:411684 @@ -147,7 +147,7 @@ 1, // ID_U 5, // ID_UL 1, // ID_VAR - 4, // ID_WBR + 1, // ID_WBR 5, // ID_XMP 0, // ID_TEXT }; @@ -254,7 +254,7 @@ REQUIRED, // ID_U REQUIRED, // ID_UL REQUIRED, // ID_VAR - REQUIRED, // ID_WBR + OPTIONAL, // ID_WBR REQUIRED, // ID_XMP REQUIRED // ID_TEXT }; @@ -650,8 +650,8 @@ case ID_MAP: // We accept SCRIPT in client-side image maps as an extension to the DTD. // MAP: ( _3 + | AREA + | SCRIPT + ) - return check_array(childID, tag_list_3) || - childID == ID_AREA || + return check_array(childID, tag_list_3) || + childID == ID_AREA || childID == ID_SCRIPT; case ID_OBJECT: case ID_EMBED: *** Bug 105490 has been marked as a duplicate of this bug. *** *** Bug 101691 has been marked as a duplicate of this bug. *** Thank you for fixing it. Looking at the patch above I see some WBR-specific stuff. According to the test case I listed in Bug 101691 (reproduced below) this problem happens with other tags as well. I'm unable to test from CVS here, but please make sure that it works with other tags as well. <nobr>, <p> and <blockquote> are some examples that trigger the issue in 3.4.0. Again, thank you! <html> <body> <a href="teste.html">Hello, <p>this is a test</a>. Is this still a link? It shouldn't be. </body> </html> The other cases are illegally nested HTML. It will work in KDE 3.5 where we take hand of invalid nesting (also called residual styles), but it will not be ported to 3.4.1 |