[Dom crawler] Issue with domcrawler + js template

in SF 2.4.1 our tests suite passed, but not in sf 2.4.2+. And now, I'm trying again to update symfony to 2.5.3 and I got this error again. So I reproduced our issue as a SF unit test.

```
1) Symfony\Component\DomCrawler\Tests\CrawlerTest::testFormTextarea
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
 
                     <form method="post" action="#">
-                        <textarea id="violation_comment_comment" name="violation_comment[comment]" required="required"></textarea>
-                        <button type="submit" name="action" value="comment">Comment</button>
-                    </form>
+                        <textarea id="violation_comment_comment" name="violation_comment[comment]" required="required">
+                        <button type="submit" name="action" value="comment">Comment
+                    
+

```
should be reverted