jalmenarez / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Empty lines are removed from text in text area tag #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of Minify are you using?
2.0.1

PHP version?
5.2.5

What steps will reproduce the problem?
1. Minify HTML containing a TEXT AREA that has multiple empty lines.

What is the expected output?
The text inside the text area to be untouched by Minify. This text will
have a different meaning if Minified (just like the pre tag).

<textarea name="comment" id="comment" rows="6" class="maxwidth" cols="80">66666

1234567890</textarea>

What do you see instead?
Minify changes the contents of the text area tag and the empty lines are
incorrectly removed.

<textarea name="comment" id="comment" rows="6" class="maxwidth" cols="80">66666
1234567890</textarea>

Please provide any additional information below.
The TEXTAREA tag should be handled the same way as the PRE tag. You can
reuse the code in Minify/HTML.php, just make it handle PRE tags AND
TEXTAREA tags.

Original issue reported on code.google.com by ecr...@gmail.com on 31 Jul 2008 at 4:28

GoogleCodeExporter commented 9 years ago
This should be fixed in R162. Can you verify this file works for you?

http://code.google.com/p/minify/source/browse/trunk/lib/Minify/HTML.php

Thanks for catching this!

Original comment by mrclay....@gmail.com on 31 Jul 2008 at 3:20

GoogleCodeExporter commented 9 years ago
This seems to be all fixed now.

Original comment by ecr...@gmail.com on 31 Jul 2008 at 8:45

GoogleCodeExporter commented 9 years ago

Original comment by mrclay....@gmail.com on 1 Aug 2008 at 2:49