| PageSpeed messes up XHTML code
|
vivalasvegas

msg:4098833 | 3:33 pm on Mar 16, 2010 (gmt 0) | The PageSpeed tool included with Firebug is quite helpful. I found one serious flaw however: the MINIFY HTML suggestion. They give this suggestion for most pages also providing the so called improved version of a page (white spaces removed and so on). I used the "improved" code for 3 of my pages. Then I had to work 2 hours to get my pages back. Here's why: this tool doesn't seem to differentiate between html versions, thus removing all closing tags that are mandatory in XHTML (with proper DOCTYPE in place), all quote marks (<a href="etc"> becomes <a href=etc>), and other changes resulting in over 1000 validation errors for each of these 3 pages.
|
lammert

msg:4099156 | 12:20 am on Mar 17, 2010 (gmt 0) | Thanks for the heads up! I haven't played with PageSpeed for a while, but isn't there a way to define which optimizations are allowed when squeezing the code?
|
vivalasvegas

msg:4099356 | 7:49 am on Mar 17, 2010 (gmt 0) | No options, they just give you the altered version. In fact it seems that they are aware of this issue: [code.google.com...]
|
|
|