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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>38991</bug_id>
          
          <creation_ts>2010-05-12 07:43:28 -0700</creation_ts>
          <short_desc>HTMLLabelElement::control() should return HTMLFormControlElement, not HTMLElement</short_desc>
          <delta_ts>2010-05-12 12:12:08 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yael">yael</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>darin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>224602</commentid>
    <comment_count>0</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2010-05-12 07:43:28 -0700</bug_when>
    <thetext>This is from the comment https://bugs.webkit.org/show_bug.cgi?id=38688#c18.
This change cannot remove type casting in the code, but it is still the right thing to do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224603</commentid>
    <comment_count>1</comment_count>
      <attachid>55844</attachid>
    <who name="Yael">yael</who>
    <bug_when>2010-05-12 07:48:46 -0700</bug_when>
    <thetext>Created attachment 55844
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224611</commentid>
    <comment_count>2</comment_count>
      <attachid>55844</attachid>
    <who name="">mitz</who>
    <bug_when>2010-05-12 08:02:43 -0700</bug_when>
    <thetext>Comment on attachment 55844
Patch

&gt; +#include &quot;HTMLFormControlElement.h&quot;

I think a forward declaration of the class will suffice here, instead of including the header.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224620</commentid>
    <comment_count>3</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2010-05-12 08:20:03 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 55844 [details])
&gt; &gt; +#include &quot;HTMLFormControlElement.h&quot;
&gt; 
&gt; I think a forward declaration of the class will suffice here, instead of including the header.

Thanks for your review.
I added the header due to problem compiling DOMHTMLLabelElement.mm. Perhaps there was a better way to fix the compile error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224787</commentid>
    <comment_count>4</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2010-05-12 12:11:42 -0700</bug_when>
    <thetext>Committed r59248: &lt;http://trac.webkit.org/changeset/59248&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>55844</attachid>
            <date>2010-05-12 07:48:46 -0700</date>
            <delta_ts>2010-05-12 12:12:08 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>38991.patch</filename>
            <type>text/plain</type>
            <size>1824</size>
            <attacher name="Yael">yael</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA1OTIzMikKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTYgQEAKKzIwMTAtMDUtMTIgIHlhZWwgYWhhcm9uICA8eWFlbC5haGFyb25Abm9r
aWEuY29tPgor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50KiBIVE1MTGFiZWxFbGVtZW50Ojpj
b250cm9sKCkKIHsKICAgICBjb25zdCBBdG9taWNTdHJpbmcmIGNvbnRyb2xJZCA9IGdldEF0dHJp
YnV0ZShmb3JBdHRyKTsKICAgICBpZiAoY29udHJvbElkLmlzTnVsbCgpKSB7CkluZGV4OiBXZWJD
b3JlL2h0bWwvSFRNTExhYmVsRWxlbWVudC5oCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvaHRtbC9I
VE1MTGFiZWxFbGVtZW50LmgJKHJldmlzaW9uIDU5MjI3KQorKysgV2ViQ29yZS9odG1sL0hUTUxM
YWJlbEVsZW1lbnQuaAkod29ya2luZyBjb3B5KQpAQCAtMjUsNiArMjUsNyBAQAogI2RlZmluZSBI
VE1MTGFiZWxFbGVtZW50X2gKIAogI2luY2x1ZGUgIkhUTUxFbGVtZW50LmgiCisjaW5jbHVkZSAi
SFRNTEZvcm1Db250cm9sRWxlbWVudC5oIgogCiBuYW1lc3BhY2UgV2ViQ29yZSB7CiAKQEAgLTQ2
LDcgKzQ3LDcgQEAgcHVibGljOgogICAgIC8vIE92ZXJyaWRkZW4gdG8gZWl0aGVyIGNsaWNrKCkg
b3IgZm9jdXMoKSB0aGUgY29ycmVzcG9uZGluZyBjb250cm9sLgogICAgIHZpcnR1YWwgdm9pZCBk
ZWZhdWx0RXZlbnRIYW5kbGVyKEV2ZW50Kik7CiAKLSAgICBIVE1MRWxlbWVudCogY29udHJvbCgp
OworICAgIEhUTUxGb3JtQ29udHJvbEVsZW1lbnQqIGNvbnRyb2woKTsKIAogICAgIFN0cmluZyBh
Y2Nlc3NLZXkoKSBjb25zdDsKICAgICB2b2lkIHNldEFjY2Vzc0tleShjb25zdCBTdHJpbmcmKTsK
</data>
<flag name="review"
          id="40134"
          type_id="1"
          status="+"
          setter="mitz"
    />
          </attachment>
      

    </bug>

</bugzilla>