Safari 5.1 won't load "alternate stylesheets" properly

We maintain a site that uses text resize buttons. Stylesheets are dynamically disabled to change text size. It works in every browser except Safari 5.1

We have tracked it down to something with rel="alternate stylesheet" and title="". Title doesn't apply if "alternate stylesheet" is set. Please help.

Safari 5.1-OTHER, Mac OS X (10.6.8)

Posted on Jul 26, 2011 3:50 PM

Reply
19 replies

Aug 23, 2012 1:04 PM in response to cbyars928

I have the same problem in Safari 6.0 and Chrome 21 in a script that toggles between the normal and alternate stylesheet. However, I noticed that it only fails at the first toggle, i.e. the alternate CSS is not enabled the first time, but if it is then disabled and re-enabled, it will work. Therefore, here is a stupid but cheap and effective workaround that works for me. Instead of executing simply:


a.disabled = false;


Execute:


a.disabled = false;

a.disabled = true;

a.disabled = false;


Thanks to Apple and Google to remind me why I hate both CSS and JavaScript.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Safari 5.1 won't load "alternate stylesheets" properly

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.