IE11 - Element appearance cannot be changed once its className attribute is set to the initial value

Fixed, not yet flighted Issue #101401

Details

Created
Apr 27, 2014
Privacy
This issue is public.
Found in build #
0.0011
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL = http://srvr-clw/bugs/65112/

 

Repro Steps:

==============

Use the following HTML markup and JS code (the full source code/a sample HTML page is available in the attachment):

<!DOCTYPE html>

<html>

<head>

<title>Redraw issue</title>

<style>

.c1 {

position: absolute;

}

.c2 {

float: left;

}

.c3 {

position: absolute;

top: 150px;

}

.foo {

background-color: red;

color: green;

}

.bar {

background-color: green;

color: red;

}

</style>

<script type="text/javascript">

function runTest() {

var v1 = document.getElementById(“v1”);

v1.className = v1.className == “foo” ? “bar” : "foo";

};

</script>

</head>

<body>

<form>

<div class="c1">

<div class="c2">

<div class="c3">

<table>

<tr>

<td id="v1" class="foo">Content 1</td>

</tr>

</table>

</div>

</div>

</div>

<input type="button" value="Run test" onclick="runTest()" />

</form>

</body>

</html>

  • Change the element’s className attribute from the initial value to another value. Note that the element’s appearance is changed according to the CSS styles;

  • Change the element’s className attribute back to the initial value. Note that the element’s appearance is not changed (keep the last state).

The attached *.swf video illustrates the required steps and actual results.

Expected Results:

==============

The element appearance should reflect applied CSS styles.

Actual Results:

==============

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Rossen A.”

      Changed Status to “Confirmed”

      Changed Steps to Reproduce

      Changed Assigned To from “Rossen A.” to “Saqib A.”

      Changed Status from “Confirmed” to “In code review”

      Changed Status from “In code review” to “In progress”

      Changed Status from “In progress” to “In code review”

      Changed Status from “In code review” to “In progress”

      Changed Assigned To from “Saqib A.” to “IPBS P.”

      Changed Status from “In progress” to “Fixed”

      Changed Assigned To from “IPBS P.” to “Rossen A.”

      Changed Status from “Fixed” to “Fixed, not yet flighted”

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

    Sign in