content lost when clear container

Issue #280056

Details

Created
Jun 3, 2014
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

<html>
<head>
<script type=’text/javascript’ src="jquery-1.7.1.min.js" ></script>
<script type=’text/javascript’>
function f1(){

            var div=$("<div><div id='inner'>xxxx</div>sasss</div>");
            $("#panel").append(div);
            $("#panel").html("");
            alert(div[0].outerHTML);

}
</script>
</head>
<body>
<input type="button" value="click me" onclick="f1();" />
<div id="panel">
</div>
</body>

</html>

Expected Results:

the variable should keep its value, just like other browsers does.

Actual Results:

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Tony S.”

      Changed Assigned To from “Tony S.” to “Eugene V.”

      Changed Assigned To from “Eugene V.” to “IE F.”

      Changed Status

      Changed Steps to Reproduce

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

    Sign in