tag:blogger.com,1999:blog-6603440187887047162.post5285328491473861547..comments2023-06-16T07:54:41.787-04:00Comments on Detroit Dave's Raves: Skype shot my CSS in IE8!!!(???)DetroitDavehttp://www.blogger.com/profile/00384772147714696312noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6603440187887047162.post-24605833709104600802011-06-30T23:57:15.375-04:002011-06-30T23:57:15.375-04:00Shawn, I just remove all traces of Skype until the...Shawn, I just remove all traces of Skype until the next time I need it. LOL Seriously though there are multiple reasons why I don't like the application, and i just heard the other day that MS bought Skype...even more reason not to like it?DetroitDavehttps://www.blogger.com/profile/00384772147714696312noreply@blogger.comtag:blogger.com,1999:blog-6603440187887047162.post-18394729345255577602011-04-23T14:14:36.016-04:002011-04-23T14:14:36.016-04:00Hello Dave,
I can confirm that Skype stylesheet i...Hello Dave,<br /><br />I can confirm that Skype stylesheet injection is the culprit.<br /><br />I am currently researching a cleaner solution to the issue than what I have and found your post.<br /><br /><br />I have been able to prove that the Skype plug-in will add an additional stylesheet into your webpages. The reason that it fails in later versions of IE (especially IE9), is that it adds an additional sheet at the FIRST index, not at the last index.<br /><br />So in the case where your sheets were indexes 0,1 and 2. They will now be 1,2 and 3 with the Skype sheet at index 0.<br /><br /><br />The reason that IE has the issue and not Firefox or Opera, or ... okay everyone else is that IE has an alternative implementation of CSS Rules.<br /><br /><br />In IE4-8 you have document.styleSheets[INDEX].rules<br /><br />but, in IE9 you have BOTH<br />document.styleSheets[INDEX].rules<br />and<br />document.styleSheets[INDEX].cssRules<br />(where cssRules is what is used by everyother brower)<br /><br /><br />The interesting part is that Skype will not update rules the same way it updates cssRules, so good f&*&king luck. (In most cases with IE9, rules won't be updated by Skype at all, but cssRules will!)<br /><br /><br />I have yet to come up with a fool-proof way to block injection.<br /><br /><br />Sincerely,<br /><br />ShawnShawn M. Murphyhttp://www.wherever.comnoreply@blogger.com