Hmm interestingly odd issue. Boo Boo to M$ IE
/James
On 10/9/07, Andy Kent <[EMAIL PROTECTED]> wrote:
>
>
> Thanks a heap for your help James, after lots of trial and error I
> managed to track down the source of the problem.
>
> It's a very curious IE issue, your examples work fine provided you
Thanks a heap for your help James, after lots of trial and error I
managed to track down the source of the problem.
It's a very curious IE issue, your examples work fine provided you
don't try to access document.stylesheets first, if you do then that
seems to kick IE off on a parsing spree.
Oh w
Thats strange, I've added lots of strange chars and it still works ok for
me.
Screenshots.
http://www.jdempster.com/public/jss/ie6.png
http://www.jdempster.com/public/jss/ie7.png
http://www.jdempster.com/public/jss/ff2.png
I did test it in more but these will do for now. Can any one else check
th
This has the same issue I'm afraid.
It works for all those examples as IE thinks they are valid. Give
something like div~p:first a go though and I you get the selector
replaced with the string 'UNKOWN' in the innerHTML source code.
Thanks for the attempt but sill no prize yet!
:( *tears*
Andy.
I've pinched some code from Christian Bach (http://lovepeacenukes.com/
jquery/ie6cssfix/) and put it into it's own test case. Tested it on
Win IE 6/7, FF 1.5/2, Safari3, Opera 9 and they all showed the same
results.
Test it out. Hopefully it can help.
http://www.jdempster.com/public/jss/js_css.ht
Unfortunately after some experimentation this method still appears to
yield 'UNKNOWN' in place of selectors that are not understood by IE.
Poo.
On 8 Oct, 11:15, Andy Kent <[EMAIL PROTECTED]> wrote:
> Thanks Mike, that's a huge help and sounds like it will solve my
> problem perfectly. I will hav
Thanks Mike, that's a huge help and sounds like it will solve my
problem perfectly. I will have a play now.
Should jQuery not be clever enough to handle this internally when you
call .text() on a style element?
Is it worth filing as a bug do you think?
Andy.
On 8 Oct, 11:07, "Michael Geary" <[E
Andy, you can read or write the content of an IE stylesheet with:
$('style')[n].styleSheet.cssText
where n is the index of the stylesheet you want.
Instead of browser detection, I test for the presence of that .styleSheet
property, and then either use .styleSheet.cssText or .text() depending
8 matches
Mail list logo