Hello to all jQuery developers and enthusiasts. This is my first post in this list. I hope I'm not breaking the rules replying to this two months old thread, but I'm highly interested in this topic.
I'm developing an internal web app that makes intense use of AJAH, with HTML responses coming from all kind of sources. That means I have no control over the presence of <style> tags nor <link> ones, but I want to apply them nonetheless. Also, I'd like those rules to be cleaned when the related style/link tags are removed from the body. This could happen if I replace completely the content of the parent node i.e. via another AJAH request. The inconsistencies among browsers are THIS big. Even bigger. But I need to be as cross-browser as posible, so I tried feature detection on this. I finally developed a plugin that modifies $.fn.html to relocate style and link tags, but it has some issues. IE browsers choke on stylesheets containing import declarations. Also, removing stylesheets containing import declarations doesn't work in Chrome and Safari. See the code at http://tinyurl.com/djsmln I thought this topic would be interesting for lots of web developers, but I barely found 1 thread about it. Can somebody please help me with this? Thanks in advance Berny On 6 feb, 12:51, ajp <[email protected]> wrote: > Apologies - I was using release 2.0.160.0 of Chrome, not the 1.0 > branch; but injecting arbitrary styles into the body _does work_ on > this build. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
