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

Chris Dumez
Reported 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.
Attachments
Patch (4.26 KB, patch)
2016-01-26 15:46 PST, Chris Dumez
no flags
Chris Dumez
Comment 1 2016-01-26 15:46:01 PST
WebKit Commit Bot
Comment 2 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>
WebKit Commit Bot
Comment 3 2016-01-26 17:16:29 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.