diff options
author | Benjamin Franzke <benjaminfranzke@gmail.com> | 2017-07-22 12:59:24 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@gmail.com> | 2017-07-22 13:00:33 +0200 |
commit | 617c7b384542f6b32c4d5cdfe0e0ced3b6d5b243 (patch) | |
tree | 6ea6ec912a057908e8d0946a643a941ccf3b31fa /minify_html.sed | |
parent | dd739532b3c17eacea4826e4d64f8fdcdc6c0ee2 (diff) | |
download | mutti-web-617c7b384542f6b32c4d5cdfe0e0ced3b6d5b243.tar.gz mutti-web-617c7b384542f6b32c4d5cdfe0e0ced3b6d5b243.tar.bz2 mutti-web-617c7b384542f6b32c4d5cdfe0e0ced3b6d5b243.zip |
Remove svg namespace from html5 output
svg namespace is added implicitly to the
<svg> tags by html5 parsers.
(It's actually that the xmlns has no effect
for html5 and should theoretically be treated as something has
_has_ to be removed during minification)
Diffstat (limited to 'minify_html.sed')
-rw-r--r-- | minify_html.sed | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/minify_html.sed b/minify_html.sed index fc9c5bc..940977f 100644 --- a/minify_html.sed +++ b/minify_html.sed @@ -4,3 +4,5 @@ s/<\/\(body\|head\|html\)>//g s/<\/\(li\|p\)>//g s/="\([a-zA-Z0-9_:.\/#&;@?-]*\)"/=\1/g + +s| \{0,1\}xmlns=http://www.w3.org/2000/svg||g |