[Webkit-unassigned] [Bug 124885] New: css namespace didnt apply by dynamic load content
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Nov 26 01:36:01 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=124885
Summary: css namespace didnt apply by dynamic load content
Product: WebKit
Version: 525.x (Safari 3.2)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: statusq at mail.ru
Steps to reproduce the problem:
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
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.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list