Progress element created with JavaScript will always have a value of 1 if the max attribute isn't set first

Confirmed Issue #5102466 • Assigned to Rossen A.

Details

Created
Oct 20, 2015
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

<body id="body1">
<script type="text/javascript">
var body = document.getElementById(‘body1’);
var nl = document.createElement(‘br’);
var progress1 = document.createElement(‘progress’);
progress1.setAttribute("class", “progress”);
progress1.setAttribute("max", “100”);
progress1.setAttribute("value", “40”);
body.appendChild(progress1);
body.appendChild(nl);
var progress2 = document.createElement(‘progress’);
progress2.setAttribute("class", “progress”);
progress2.setAttribute("value", “40”);
progress2.setAttribute("max", “100”);
body.appendChild(progress2);
</script>
</body>

Expected Results:

The order in which the attributes are set should not make the difference if they are applied or not.

Actual Results:

Dev Channel specific:

No

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Kamen M.”

      Changed Assigned To to “Bogdan B.”

      Changed Status to “Confirmed”

      Changed Assigned To to “Bogdan B.”

      Changed Assigned To from “Bogdan B.” to “Rossen A.”

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

    Sign in