Author: abelevich
Date: 2008-06-30 14:04:08 -0400 (Mon, 30 Jun 2008)
New Revision: 9309
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/io/parser/FastHtmlParser.java
Log:
http://jira.jboss.com/jira/browse/RF-3685
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/io/parser/FastHtmlParser.java
===================================================================
---
trunk/framework/impl/src/main/java/org/ajax4jsf/io/parser/FastHtmlParser.java 2008-06-30
18:02:24 UTC (rev 9308)
+++
trunk/framework/impl/src/main/java/org/ajax4jsf/io/parser/FastHtmlParser.java 2008-06-30
18:04:08 UTC (rev 9309)
@@ -64,7 +64,7 @@
boolean haveHtml = false;
boolean haveHead = false;
boolean closingElement = false;
-//
http://jira.jboss.com/jira/browse/RF-3685
+//see if any characters has been wrote
http://jira.jboss.com/jira/browse/RF-3685
boolean parsed = false;
// Always parse content, see
http://jira.jboss.com/jira/browse/RF-3577
// if (null != scripts || null != styles || null != userStyles) {
@@ -168,7 +168,7 @@
buffersCount++;
}
}
- if (!haveHtml) {
+ if (!haveHtml && parsed) {
out.write("</html>");
}