this is my line 11:

if (!(offset == -60)) {document.write('<link rel="stylesheet" type="text/css" href="/drupal/index.php?q=autotimezone/' + offset + '" />')};

This bug has been found with SGML Parser in FF HTML Tidy (http://users.skynet.be/mgueury/mozilla/)

The following article will be helpfull - how to fix - this bug: http://drupal.org/node/104793

Comments

LukeLast’s picture

This is one side effect of using this javascript css link method.

hass’s picture

But you are able to fix this, see my feature request http://drupal.org/node/104793. This will fix the problem and is used in drupal core, too!

LukeLast’s picture

Status: Active » Fixed

Wow, your right that works.
Good work!

Anonymous’s picture

Status: Fixed » Closed (fixed)
hass’s picture

Status: Closed (fixed) » Active

i'm sorry, i must reopen the bug. i told you about a function that is already build in drupal and i haven't seen. it is named drupal_to_js(); and this seems to be the API way you should go...

LukeLast’s picture

Version: 4.7.x-1.x-dev » 5.x-1.x-dev
Status: Active » Closed (fixed)

I added some drupal_to_js calls although they don't really do anything.