Author: sdzmitrovich
Date: 2008-03-10 15:58:43 -0400 (Mon, 10 Mar 2008)
New Revision: 6826
Modified:
branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java
Log:
jbide-1738
Modified:
branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java
===================================================================
---
branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java 2008-03-10
19:53:47 UTC (rev 6825)
+++
branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java 2008-03-10
19:58:43 UTC (rev 6826)
@@ -81,7 +81,8 @@
} else {
nsIDOMElement tempHTMLElement = getVisualDocument().createElement(HTML.TAG_DIV);
- if (sourceNode.getNodeType() == Node.ELEMENT_NODE) {
+ if ((sourceNode.getNodeType() == Node.ELEMENT_NODE)
+ && ("form".equals(sourceNode.getLocalName()))) {
if (((Element) sourceNode).hasAttribute("style"))
tempHTMLElement.setAttribute(HTML.ATTR_STYLE,
((Element) sourceNode)
Show replies by date