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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>12423</bug_id>
          
          <creation_ts>2011-04-05 14:24:17 +0000</creation_ts>
          <short_desc>Setting .value on a textarea should set the dirty flag to true</short_desc>
          <delta_ts>2011-08-04 05:14:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-textarea-element</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ayg</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47159</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-04-05 14:24:17 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html
Section: http://www.whatwg.org/specs/web-apps/current-work/#the-textarea-element

Comment:
Setting .value on a textarea should set the dirty flag to true

Posted from: 67.111.52.130
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.2a1pre) Gecko/20110328 Firefox/4.2a1pre</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47162</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-04-05 14:26:09 +0000</bug_when>
    <thetext>*** Bug 12424 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47163</commentid>
    <comment_count>2</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-04-05 14:26:46 +0000</bug_when>
    <thetext>In particular, this happnes for text inputs, but not textareas.  The inconsistency seems wrong to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47164</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2011-04-05 14:42:05 +0000</bug_when>
    <thetext>I don&apos;t see in the spec where it says that setting .value should set the dirty value flag for input.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47165</commentid>
    <comment_count>4</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-04-05 14:47:42 +0000</bug_when>
    <thetext>http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#dom-input-value in the &quot;value&quot; section says:

  On setting, it must set the element&apos;s value to the new value, set the element&apos;s
  dirty value flag to true ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47166</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2011-04-05 14:51:32 +0000</bug_when>
    <thetext>Ah yeah, sorry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49706</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-06-16 18:03:31 +0000</bug_when>
    <thetext>Turns out WebKit doesn&apos;t do this, and nor does IE. But Gecko and Opera do it, so I&apos;m sold! Wow is there poor interop on this. You&apos;d think this test would be simple:

   http://junkyard.damowmow.com/471

...but four browsers, four results.

EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter&apos;s comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49707</commentid>
    <comment_count>7</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-06-16 18:03:53 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r6241.
Check-in comment: Make textarea and input consistent. (Interop here is a disaster currently, so we can change this with impunity.)
http://html5.org/tools/web-apps-tracker?from=6240&amp;to=6241</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49721</commentid>
    <comment_count>8</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-06-16 18:47:19 +0000</bug_when>
    <thetext>&gt; Turns out WebKit doesn&apos;t do this

Current WebKit does, actually; see https://bugs.webkit.org/show_bug.cgi?id=57636

&gt; nor does IE.

Odd.  IE seems to do it in my testing.

&gt; But Gecko and Opera do it

Opera is sort of weird: it treats users typing and .value sets differently for textarea (the only browser to do that, as far as I can tell).  See https://bugs.webkit.org/show_bug.cgi?id=57636#c5

&gt; ...but four browsers, four results.

Fwiw, current dev Chrome and current Firefox agree on that testcase, since that WebKit bug was fixed.  So only 3 results now!  ;)  Though actually it&apos;s still 4, because IE9 Standards mode does one thing, while IE9 in IE8, IE7, and compat modes does something else....

We&apos;ll get to interop sometime, I&apos;m sure.

Thanks for making the change!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53481</commentid>
    <comment_count>9</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:14:17 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>