U+0000 NULL is not preserved in input.value IDL attribute

Issue #12263595 • Assigned to Bogdan B.

Details

Author
Simon P.
Created
Jun 7, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
  • Safari
Found in build #
15
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

See web-platform-tests PR https://github.com/w3c/web-platform-tests/pull/6149

Some tests fail as follows in EdgeHTML

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

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “Bogdan B.”

    • Thanks for the bug report, Simon. Based on expected user impact, I don’t think we will be fixing that bug in the near future, unfortunately.

    • Same thing for textarea, FWIW (only in EdgeHTML, this passes in WebKit/Chromium/Gecko):

      https://github.com/w3c/web-platform-tests/pull/6197#event-1116664175

      tests for U+0000 NULL   FAIL    assert_equals: defaultValue after setting defaultValue expected "foo\0" but got "foo"
      

    You need to sign in to your Microsoft account to add a comment.

    Sign in