<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>101678</bug_id>
          
          <creation_ts>2005-03-17 11:18:09 +0000</creation_ts>
          <short_desc>khtml dont close links with wbr tag</short_desc>
          <delta_ts>2005-06-16 23:23:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</product>
          <component>khtml parsing</component>
          <version>unspecified</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>gallir</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>hisham</cc>
    
    <cc>mail4ilia</cc>
    
    <cc>roman.kalukiewicz</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>324717</commentid>
    <comment_count>0</comment_count>
    <who name="">gallir</who>
    <bug_when>2005-03-17 11:18:09 +0000</bug_when>
    <thetext>Version:           3.4.0 (using KDE 3.4.0, Debian Package 4:3.4.0-0pre1 (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-8)
OS:                Linux (i686) release 2.6.11

If &lt;wbr&gt; tags are inside a link, &lt;/a&gt; is ignored. The following external text are also considered as part of it, even if there are other links.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324719</commentid>
    <comment_count>1</comment_count>
    <who name="">gallir</who>
    <bug_when>2005-03-17 11:18:39 +0000</bug_when>
    <thetext>I forgot it, a test case:

&lt;a href=&quot;http://www.kde.org&quot; target=_blank&gt;Word1&lt;wbr&gt;Word2&lt;wbr&gt;Word3&lt;/a&gt;
&lt;br&gt;
Other text, should not be linked.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>340752</commentid>
    <comment_count>2</comment_count>
    <who name="Allan Sandfeld">kde</who>
    <bug_when>2005-05-09 23:59:11 +0000</bug_when>
    <thetext>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:
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>341309</commentid>
    <comment_count>3</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2005-05-12 01:14:35 +0000</bug_when>
    <thetext>*** Bug 105490 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>341311</commentid>
    <comment_count>4</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2005-05-12 01:15:01 +0000</bug_when>
    <thetext>*** Bug 101691 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>341325</commentid>
    <comment_count>5</comment_count>
    <who name="">hisham</who>
    <bug_when>2005-05-12 03:08:21 +0000</bug_when>
    <thetext>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&apos;m unable to test from CVS here, but please make sure that it works with other tags as well. &lt;nobr&gt;, &lt;p&gt; and &lt;blockquote&gt; are some examples that trigger the issue in 3.4.0. Again, thank you!

&lt;html&gt; 
&lt;body&gt; 
&lt;a href=&quot;teste.html&quot;&gt;Hello, &lt;p&gt;this is a test&lt;/a&gt;. Is this still a link? It shouldn&apos;t be. 
&lt;/body&gt; 
&lt;/html&gt; </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>341411</commentid>
    <comment_count>6</comment_count>
    <who name="Allan Sandfeld">kde</who>
    <bug_when>2005-05-12 12:08:28 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351089</commentid>
    <comment_count>7</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2005-06-16 23:23:13 +0000</bug_when>
    <thetext>*** Bug 79686 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>