Author: dazarov
Date: 2008-02-13 11:14:55 -0500 (Wed, 13 Feb 2008)
New Revision: 6301
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/handlers/TaglibSetXHTML.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1775
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/handlers/TaglibSetXHTML.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/handlers/TaglibSetXHTML.java 2008-02-13
14:47:57 UTC (rev 6300)
+++
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/handlers/TaglibSetXHTML.java 2008-02-13
16:14:55 UTC (rev 6301)
@@ -43,7 +43,11 @@
protected boolean doModifyBody(String body, String[] selected, StringBuffer sb) {
if(body == null || body.length() == 0) {
body = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0
Transitional//EN\"
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">" +
"\n" +
- "<html
xmlns=\"http://www.w3.org/1999/xhtml\">\n" +
+ "<html
xmlns=\"http://www.w3.org/1999/xhtml\">\n" +
+ "\t<body>\n" +
+ "\t\t<form action=\"\">\n" +
+ "\t\t</form>\n" +
+ "\t</body>\n" +
"</html>";
}
int ib = body.toLowerCase().indexOf("<html");