You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
What steps will reproduce the problem?
Generally, serve up an HTML output with no <body> tag in it
In my case:
1. Run wordpress with wp-greetbox plugin
2. Notice the above error in the logs
What is the expected output? What do you see instead?
I didn't want to see these errors in the logs.
What version of the product are you using (please check X-Mod-Pagespeed
header)?
0.9.10.1-250
On what operating system?
CentOS
Which version of Apache?
Apache/2.2.9 (Unix)
Which MPM?
prefork
Please provide any additional information below, especially a URL or an
HTML file that exhibits the problem.
mod_pagespeed reports HTML fragments with no <body> tag as an error, when in
fact these are not really worth the attention of the server administrator.
For example, this WordPress plugin "WP-Greetbox" appears to be fetching the
HTML fragment using AJAX and inserting it into the page, and in this case a
body tag would be extraneous.
There are various other AJAX use cases for non-well-formatted HTML; for
example, if you want to get plain text back in a POST response in an iframe
I've found I have to send it as text/html otherwise browsers might wrap it in a
<pre> tag or other wonderful transformations. Sending the plain text with the
wrong content type results in an innerHTML with just the right contents.
Original issue reported on code.google.com by dobes.va...@kashoo.com on 6 Dec 2010 at 6:45
The text was updated successfully, but these errors were encountered:
Also seeing this when loading the WordPress Dashboard, its AJAX responses also
do not comtain a <body> tag it seems:
[Sun Dec 05 22:45:49 2010] [error] [mod_pagespeed 0.9.10.1-250]
http://www.xxxxxxx.com/blog/wp-admin/index-extra.php?jax=dashboard_incoming_link
s:1: Reached end of document without finding <body>
Original comment by dobes.va...@kashoo.com on 6 Dec 2010 at 6:47
Original issue reported on code.google.com by
dobes.va...@kashoo.com
on 6 Dec 2010 at 6:45The text was updated successfully, but these errors were encountered: