Closed (won't fix)
Project:
Drupal core
Version:
4.7.3
Component:
javascript
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Aug 2006 at 09:29 UTC
Updated:
15 Aug 2006 at 13:23 UTC
I experienced having a module with newlines after the php end-tag. This caused all my pages to get a newline on top, before the DOCTYPE tag. When using AJAX modules like activemenu, the data fetched from the server was prepended with spaces and newlines, thus failing the '{' check.
I suggest stripping any prepending blanks and maybe newlines.
Comments
Comment #1
Steven commentedHaving blanks inserted at the top will cause more problems than just with Ajax. Header statements would fail (resulting in the common 'headers already sent' error), XML feeds would be invalid, doctypes would not be interpreted and generated images would break.