Bug 153519

Summary: Setting HTMLInputElement.value to null to set its value to the empty string
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, rniwa
Priority: P2 Keywords: WebExposed
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://html.spec.whatwg.org/#htmlinputelement
Bug Depends on:    
Bug Blocks: 153504    
Attachments:
Description Flags
Patch none

Description Chris Dumez 2016-01-26 15:43:10 PST
Setting HTMLInputElement.value to null to set its value to the empty string:
- https://html.spec.whatwg.org/#htmlinputelement
- http://heycam.github.io/webidl/#TreatNullAs

WebKit currently unsets the value attribute instead, which causes us to fallback to input.defaultValue if set.

Firefox and Chrome behave correctly.
Comment 1 Chris Dumez 2016-01-26 15:46:01 PST
Created attachment 269938 [details]
Patch
Comment 2 WebKit Commit Bot 2016-01-26 17:16:25 PST
Comment on attachment 269938 [details]
Patch

Clearing flags on attachment: 269938

Committed r195642: <http://trac.webkit.org/changeset/195642>
Comment 3 WebKit Commit Bot 2016-01-26 17:16:29 PST
All reviewed patches have been landed.  Closing bug.