Closed
Bug 567111
Opened 15 years ago
Closed 15 years ago
Change value of submit button into string with html encoded characters does not work
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 121675
People
(Reporter: croesuskall, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; is; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; is; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9
If you update the value of in input field that has type "submit" with a string that consists of HTML encoded characters (such as ) - the html encoded characters are not decoded by the browser, rather they are displayed directly.
Reproducible: Always
Steps to Reproduce:
To reproduce, use the following code and press the 'button',
<html>
<head>
<title> Firefox test page </title>
</head>
<body>
<div> Some text</div>
<form>
<input id="tt" type="submit" value="ble æ"/>
</form>
<button onClick="myMethod();return false;">
A button
</button>
<script>
function myMethod() {
var dd = document.getElementById("tt");
dd.value="new value æ";
}
</script>
</body>
</html>
Actual Results:
When I press the button labeled 'a button' the submit button text changes to,
new value æ
Expected Results:
The submit button text should display:
new value æ
Not sure if this is a firefox issue or not since the same behaviour is displayed in IE8
Updated•15 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•