Error: document type does not allow element "link" here
hass - December 26, 2006 - 01:16
| Project: | Auto Time Zone |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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

#1
This is one side effect of using this javascript css link method.
#2
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!
#3
Wow, your right that works.
Good work!
#4
#5
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...#6
I added some drupal_to_js calls although they don't really do anything.