Bug 173048

Summary: U+0000 NULL is not preserved in input.value IDL attribute
Product: WebKit Reporter: Simon Pieters (:zcorpan) <zcorpan>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, cdumez, darin, rniwa, wenson_hsieh
Priority: P2    
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Simon Pieters (:zcorpan)
Reported 2017-06-07 01:37:54 PDT
See web-platform-tests PR https://github.com/w3c/web-platform-tests/pull/6149 Some tests fail as follows in WebKit Fail value IDL attribute of input type text without value attribute assert_equals: expected "foo\0" but got "foo" That test is: // MODE VALUE test(function () { var input = document.createElement("input"); input.type = "text"; input.value = "foo\r\r\n\n\0"; assert_equals(input.value, "foo\0"); }, "value IDL attribute of input type text without value attribute"); All tests pass in Chromium and Gecko.
Attachments
Ahmad Saleem
Comment 1 2022-08-02 13:01:24 PDT
All tests now pass in Safari - https://wpt.fyi/results/html/semantics/forms/the-input-element/valueMode.html?label=master&label=experimental&aligned&view=subtest&q=valuemode.html Is something else needed or we can mark this as "RESOLVED CONFIGURATION CHANGED"? Thanks!
Ryosuke Niwa
Comment 2 2022-08-02 13:31:37 PDT
I *think* Darin also fixed this a while ago.
Note You need to log in before you can comment on or make changes to this bug.