Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 Area-Undefined

New issue 32521 by lorenzo.puccetti: SOH character not supported in input type="test"
http://code.google.com/p/chromium/issues/detail?id=32521

Chrome Version       : 3.0.195.38
URLs (if applicable) : N/A
Other browsers tested:
  Add OK or FAIL after other browsers where you have tested this issue:
     Safari 4: NOT TESTED
  Firefox 3.5: OK
         IE 7: OK
         IE 8: OK

What steps will reproduce the problem?

Just create this html sample file:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
     "http://www.w3.org/TR/html4/loose.dtd";>

<html>
<head>
<title>Test CHARSETS</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<input type="text" id="test">
</input>
<script>
document.getElementById("test").value = "abcdef";
var len = document.getElementById("test").value.length;
if (len === 7)
{
   alert('success');
} else {
   alert('failure: '+len+' != 7');
}
</script>

</body>
</html>




What is the expected result?

We expect the length to be 7. Instead it's 3.
Meaning that the character <soh> (0x01) has been stripped out.
Note: that textareas support it.
It's only input type="text" does not support it.

What happens instead?

It removes any character following the character <soh>


Please provide any additional information below. Attach a screenshot if
possible.


Attachments:
        1.html  532 bytes

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
-- 
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs

Reply via email to