Comment #4 on issue 3976 by anieve01: HTML DOM innerHTML Property doesn't work on style element http://code.google.com/p/chromium/issues/detail?id=3976
Regardless of the code implementation, chrome must have some facility to let a parent window dynamically update the css of its iframe window using javascript. There must be some way to programmatically remove a style element from an iframe and replace it with a new style element presented as a string by a user via textarea input. IE7 and FF3 allows this by the following means for example: Suppose iframe has a div which contains a style tag, which set the window's background to green. Now say the iframe's parent window presents a text box where a user can paste in a style tag as a string, which will set the iframe window to red. IE7 and FF3 lets the parent window update the style element of the iframe window by the following routine: 1. get the div element containing style element from iframe 2. set the innerhtml of the div to empty string, so that the iframe window no longer has a green-background 3. create a new div element, setting its innerHTML to the style string entered by the user 4. append the new div containing the style string into the body of the iframe so that the iframe's background changes to red This is important because in the social networking space, many sites provide css styles which can be copied and paste into profiles and previewed with the new css client side. No need to reload the page by going back to the server to see the updated profile. -- 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 -~----------~----~----~----~------~----~------~--~---