After installing the module, the Drupal website is no longer displayed in Firefox 3. A message appears: XML parsing error: not well formed. The error is supposedly somehwere in the page.tpl.php - however it dissapears when de Accesibliity module is deactivated.

So the problem is, for some reason, Accessibliity instruct firefox to read an xhtml page.tpl.php as if it were XML. And it is not well formed due to javascript usage &, '+' etc.

I can't figure out where to fix that.

Comments

Anonymous’s picture

Status: Active » Fixed

The problem was the following:

With accesibility module switched on, this line:

became

(in Firefox).

But!! I just noticed that little switch in the Accessibility admin! - "Override xHTML mime type"

That fixed firefox.

jabba_29’s picture

This is due to code output not produced by the module itself.

Sending content as application/xhtml+xml is risky if you have any user inputs or
incorrectly coded pages in general.

That is what the override 'switch' is for ...
and why /admin is sent as text/html no matter what...
but I am glad you found it.

Additionally there are quite a few JavaScript/ajax things that do not work on when content is sent is this format.
Again, that is why the switch is available.

Good luck and let me know how your site goes ....

jabba_29’s picture

Assigned: Unassigned » jabba_29
Status: Fixed » Closed (fixed)

Not module related