Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 OS-All Area-Misc
New issue 9532 by anieve01: Javascript in a window cannot update the css of
a child iframe window dynamically
http://code.google.com/p/chromium/issues/detail?id=9532
Chrome Version : <Copy from: 'about:version'>
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Firefox 3.x: OK
IE 7: OK
IE 8: OK
What steps will reproduce the problem?
1. open a web page which has an iframe loaded
2. use the following code in the parent window to update the css of the
iframe window:
var w = window.iframeWindow;
var cssDiv = w.document.getElementById('cssDiv');
var newDiv = w.document.createElement('div');
newDiv.innerHTML = "<style>list of rules</style>";
cssDiv.appendChild(newDiv);
cssDiv is in the body of the iframe DOM
What is the expected result?
The DOM of the iframe window should be updated with the new css
What happens instead?
The code has no effect
This is important because some apps want to update the css of an iframe
window dynamically from within the the parent window
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---