css namespace didnt apply by dynamic load content

Issue #104793 • Assigned to Bogdan B.

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 =

URL:

Repro Steps:

I have two xhtml files:
first (include.xhtml):


<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:myspace="http://www.mynamespace.com/"

<head>
<style type="text/css">
@namespace myspace "http://www.mynamespace.com/";
body {
background-color: cyan;
}
*[myspace|indf=’someelement’] {
background-color: red;
}
</style>
</head>
<body>
Lorem ipsum dolor sit amet, <span myspace:indf="someelement">consectetur adipisicing elit</span>, sed do eiusmod tempor incididunt ut labore
</body>
</html>


second (index_dom.xhtml):

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
function load(){
var xhr = new XMLHttpRequest();
xhr.open('GET’, "./include.xhtml", true);
xhr.onload = function(e) {
myFrame.document.write(this.response);
myFrame.document.close();
};
xhr.send();
}
</script>
</head>
<body onload="load()">
<iframe id="myFrame"/>
</body>

</html>


I open index_dom.xhtml

Expected Results:

What is the expected behavior?
css style *[myspace|indf=’someelement’] must be applied for element inside iframe.

What went wrong?
css style *[myspace|indf=’someelement’] does not apply for <span> element after include.xhtml has been loaded to iframe. But another styles were applied.

if I use iframe.src = “./include.xhtml” instead dynamic content load all styles works fine.

Actual Results:

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Eugene V.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Eugene V.” to “Alex K.”

      Changed Assigned To from “Alex K.” to “IPBS P.”

      Changed Status from “Confirmed” to “Won’t fix”

      Changed Assigned To from “IPBS P.” to “Eugene V.”

      Changed Assigned To to “Travis L.”

      Changed Status from “Won’t fix”

      Changed Status to “Confirmed”

      Changed Status from “Confirmed”

      Changed Assigned To to “Bogdan B.”

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

    Sign in