FELIX-2971 Apply patch by Christanto (thank you very much) to support forms on IE 7

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1129126 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/resources/res/lib/support.js b/webconsole/src/main/resources/res/lib/support.js
index c9b2123..55539c4 100644
--- a/webconsole/src/main/resources/res/lib/support.js
+++ b/webconsole/src/main/resources/res/lib/support.js
@@ -218,25 +218,40 @@
 }
 
 /* Element */ function createElement( /* String */ name, /* String */ cssClass, /* Map */ attrs, /* Element[] */ children  ) {
-	var element = document.createElement( name );
+	var sb = ["<", name];
 
-	if (cssClass) {
-		$(element).addClass(cssClass);
+	if (attrs && attrs.name) {
+		sb.push(" name='", attrs.name, "'");
 	}
 
+	if (attrs && attrs.type) {
+		sb.push(" type='", attrs.type, "'");
+	}
+
+	sb.push(">");
+
+	var el = $(sb.join(""));
+
+	if (cssClass) {
+		el.addClass(cssClass);
+	}
 	if (attrs) {
 		for (var lab in attrs) {
 			if ("style" == lab) {
 				var styles = attrs[lab];
 				for (var styleName in styles) {
-					$(element).css(styleName, styles[styleName]);
+					el.css(styleName, styles[styleName]);
 				}
+			} else if ("name" == lab || "type" == lab) {
+				//skip
 			} else {
-				$(element).attr( lab, attrs[lab] );
+				el.attr( lab, attrs[lab] );
 			}
 		}
 	}
 
+	var element = el.get()[0];
+
 	if (children && children.length) {
 		for (var i=0; i < children.length; i++) {
 			element.appendChild( children[i] );