<?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>161272</bug_id>
          
          <creation_ts>2008-04-25 20:46:26 +0000</creation_ts>
          <short_desc>[testcase] Konqueror shouldn&apos;t allow several radio controls to be checked</short_desc>
          <delta_ts>2009-03-21 16:23:44 +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 forms</component>
          <version>SVN</version>
          <rep_platform>Compiled Sources</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>1</everconfirmed>
          <reporter name="Christophe Marin">christophe</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>markusk</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>597022</commentid>
    <comment_count>0</comment_count>
    <who name="Christophe Marin">christophe</who>
    <bug_when>2008-04-25 20:46:26 +0000</bug_when>
    <thetext>Version:           4.00.71 (KDE 4.0.71 (Alpha1) (using 4.00.71 (KDE 4.0.71 (Alpha1), compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.24-16-generic

This bug is *not* a duplicate of bug 89363 (different testcase) :-)

kdelibs rev. 801095.

Testcase :

&lt;html&gt;
&lt;body&gt;
  All these buttons have the same &quot;name&quot; value.&lt;br&gt;
  &lt;form action=&quot;http://bugs.kde.org&quot;&gt;
    &lt;input type=&quot;radio&quot; name=&quot;RadioButton&quot; checked=&quot;checked&quot;&gt; Button #1 &lt;br&gt;
    &lt;input type=&quot;radio&quot; name=&quot;RadioButton&quot; checked=&quot;checked&quot;&gt; Button #2 &lt;br&gt;
    &lt;input type=&quot;radio&quot; name=&quot;RadioButton&quot; checked=&quot;checked&quot;&gt; Button #3 &lt;br&gt;
    &lt;input type=&quot;radio&quot; name=&quot;RadioButton&quot; checked=&quot;checked&quot;&gt; Button #4 &lt;br&gt;
  &lt;/form&gt;
  &lt;/body&gt;
&lt;/html&gt;

There are two differences with 89363 :
- The controls are in a form
- the checked option is used.

With this testcase, all buttons will be checked in Konqueror while w3c mentions : «Radio buttons are like checkboxes except that when several share the same control name, they are mutually exclusive: when one is switched &quot;on&quot;, all others with the same name are switched &quot;off&quot;» (http://www.w3.org/TR/html401/interact/forms.html / 17.2.1).

I guess konqueror should make a choice to display only one checked button.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>597023</commentid>
    <comment_count>1</comment_count>
      <attachid>24503</attachid>
    <who name="Christophe Marin">christophe</who>
    <bug_when>2008-04-25 20:48:23 +0000</bug_when>
    <thetext>Created attachment 24503
testcase

Testcase with &quot;value&quot; set.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>603650</commentid>
    <comment_count>2</comment_count>
    <who name="Markus Kohls">markusk</who>
    <bug_when>2008-05-23 15:46:34 +0000</bug_when>
    <thetext>I can confirm this with Konqueror 4.0.4. There&apos;s the same error on www.gaspricewatch.com (select radio buttons with same name for search time interval of stations). They are not mutually exclusive, which makes the search unusable. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>603652</commentid>
    <comment_count>3</comment_count>
    <who name="Eduardo Robles Elvira">edulix</who>
    <bug_when>2008-05-23 15:50:15 +0000</bug_when>
    <thetext>I can confirm this bug too in SVN trunk, rev 811382.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>695421</commentid>
    <comment_count>4</comment_count>
    <who name="Markus Kohls">markusk</who>
    <bug_when>2009-01-07 03:13:22 +0000</bug_when>
    <thetext>This is fixed in recent SVN (KDE4Daily for KDE4.2)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>722922</commentid>
    <comment_count>5</comment_count>
    <who name="Stas Verberkt">kde</who>
    <bug_when>2009-02-26 22:55:07 +0000</bug_when>
    <thetext>SVN commit 932558 by sverberkt:

Don&apos;t allow multiple radiobuttons to be checked on default.

BUG:161272


 M  +17 -8     html_formimpl.cpp  
 M  +3 -2      html_formimpl.h  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=932558</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>733364</commentid>
    <comment_count>6</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2009-03-21 16:23:44 +0000</bug_when>
    <thetext>SVN commit 942337 by orlovich:

Merged revision:r932558 | sverberkt | 2009-02-26 16:55:05 -0500 (Thu, 26 Feb 2009) | 4 lines

Don&apos;t allow multiple radiobuttons to be checked on default.

BUG:161272

 M  +17 -8     html_formimpl.cpp  
 M  +3 -2      html_formimpl.h  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=942337</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>24503</attachid>
            <date>2008-04-25 20:48:23 +0000</date>
            <delta_ts>2008-04-25 20:48:23 +0000</delta_ts>
            <desc>testcase</desc>
            <filename>testcase.htm</filename>
            <type>text/html</type>
            <size>479</size>
            <attacher name="Christophe Marin">christophe</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5PgogIEFsbCB0aGVzZSBidXR0b25zIGhhdmUgdGhlIHNhbWUgIm5hbWUiIHZh
bHVlLjxicj4KICA8Zm9ybSBhY3Rpb249Imh0dHA6Ly9idWdzLmtkZS5vcmciPgogICAgPGlucHV0
IHR5cGU9InJhZGlvIiBuYW1lPSJSYWRpb0J1dHRvbiIgY2hlY2tlZD0iY2hlY2tlZCIgdmFsdWU9
IjEiPiBCdXR0b24gIzEgPGJyPgogICAgPGlucHV0IHR5cGU9InJhZGlvIiBuYW1lPSJSYWRpb0J1
dHRvbiIgY2hlY2tlZD0iY2hlY2tlZCIgdmFsdWU9IjIiPiBCdXR0b24gIzIgPGJyPgogICAgPGlu
cHV0IHR5cGU9InJhZGlvIiBuYW1lPSJSYWRpb0J1dHRvbiIgY2hlY2tlZD0iY2hlY2tlZCIgdmFs
dWU9IjMiPiBCdXR0b24gIzMgPGJyPgogICAgPGlucHV0IHR5cGU9InJhZGlvIiBuYW1lPSJSYWRp
b0J1dHRvbiIgY2hlY2tlZD0iY2hlY2tlZCIgdmFsdWU9IjQiPiBCdXR0b24gIzQgPGJyPgogIDwv
Zm9ybT4KICA8L2JvZHk+CjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>