Test whitespace collapsing in style element.
authorJuriy Zaytsev <kangax@gmail.com>
Wed, 24 Feb 2010 06:00:51 +0000 (01:00 -0500)
committerJuriy Zaytsev <kangax@gmail.com>
Wed, 24 Feb 2010 06:00:51 +0000 (01:00 -0500)
index.html
tests/index.html

index a322615..d4942e0 100644 (file)
           <li>Parser trips over xml declarations (need to ignore or strip them)</li>
           <li>Generate a report of all applied transformations</li>
           <li>Warn about missing doctype (as part of linting process)</li>
+          <li>Warn about style attributes</li>
         </ul>
       </div>
       <p class="quiet" style="font-style:italic;">
index 668ed14..593936b 100644 (file)
           input = '<script>alert("foo     bar")    <\/script>';
           output = '<script>alert("foo     bar")<\/script>';
           equals(minify(input, { collapseWhitespace: true }), output);
+          
+          input = '<style>alert("foo     bar")    <\/style>';
+          output = '<style>alert("foo     bar")<\/style>';
+          equals(minify(input, { collapseWhitespace: true }), output);
         });
         
         test('removing empty elements', function() {