apache / incubator-pagespeed-mod

Apache module for rewriting web pages to reduce latency and bandwidth.
http://modpagespeed.com
Apache License 2.0
696 stars 158 forks source link

Add strip unnecessary tags filter #92

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
From Andy Hochhaus on discus list:

New filter idea:

http://code.google.com/p/page-speed/wiki/MinifyHtml

Certain HTML tags are optional and can generally be omitted; for
example, an HTML page without an enclosing <html> tag will still
render correctly in browsers, so Page Speed's HTML compactor will
remove such tags. However, some webmasters may want their HTML to
conform to a strict doctype, such as XHTML, and removing “optional”
tags may break validation of these doctypes.

Original issue reported on code.google.com by sligocki@google.com on 17 Nov 2010 at 1:19

GoogleCodeExporter commented 9 years ago

Original comment by sligocki@google.com on 17 Nov 2010 at 1:19

GoogleCodeExporter commented 9 years ago
don't we already respect the doctype?

Original comment by rab...@google.com on 2 Apr 2011 at 4:37

GoogleCodeExporter commented 9 years ago
Yes, this is an idea for a possible future filter that would strip unnecessary 
tags from HTML, but not XHTML (where they are necessary).

Original comment by sligocki@google.com on 4 Apr 2011 at 5:08

GoogleCodeExporter commented 9 years ago

Original comment by jmara...@google.com on 24 May 2012 at 7:12