Bug 173048
Summary: | U+0000 NULL is not preserved in input.value IDL attribute | ||
---|---|---|---|
Product: | WebKit | Reporter: | Simon Pieters (:zcorpan) <zcorpan> |
Component: | Forms | Assignee: | 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)
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
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
I *think* Darin also fixed this a while ago.