[Webkit-unassigned] [Bug 57636] Setting defaultValue on a textarea with a modified value still clobbers the value

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 5 03:28:39 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=57636


Simon Pieters <zcorpan at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zcorpan at gmail.com




--- Comment #16 from Simon Pieters <zcorpan at gmail.com>  2011-04-05 03:28:38 PST ---
Relevant parts of the spec

[[ 
  The textarea element represents a multiline plain text edit control for the element's raw value. 

  A textarea element has a dirty value flag, which must be initially set to false, and must be set to true whenever the user interacts with the control in a way that changes the raw value. 

  When the textarea element's textContent IDL attribute changes value, if the element's dirty value flag is false, then the element's raw value must be set to the value of the element's textContent IDL attribute. 

  The defaultValue IDL attribute must act like the element's textContent IDL attribute. 
  ]] 
http://www.whatwg.org/specs/web-apps/current-work/complete/the-button-element.html#the-textarea-element 

AFAICT the old behavior matches the spec. (Setting .value doesn't set the dirty value flag.)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list