NEW 124885
css namespace didnt apply by dynamic load content
https://bugs.webkit.org/show_bug.cgi?id=124885
Summary css namespace didnt apply by dynamic load content
Andrey
Reported 2013-11-26 01:34:29 PST
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.
Attachments
bug.zip (1.76 KB, application/x-zip-compressed)
2013-11-26 01:35 PST, Andrey
no flags
Andrey
Comment 1 2013-11-26 01:35:54 PST
Brent Fulgham
Comment 2 2022-07-13 16:32:03 PDT
Chrome and WebKit fail to display the content inside the <iframe>, Firefox does.
Radar WebKit Bug Importer
Comment 3 2022-07-13 16:32:15 PDT
Note You need to log in before you can comment on or make changes to this bug.