diff --git a/bundles/org.eclipse.orion.client.core/web/orion/commands.js b/bundles/org.eclipse.orion.client.core/web/orion/commands.js
index <HASH>..<HASH> 100644
--- a/bundles/org.eclipse.orion.client.core/web/orion/commands.js
+++ b/bundles/org.eclipse.orion.client.core/web/orion/commands.js
@@ -169,7 +169,12 @@ define(['i18n!orion/nls/messages', 'require', 'dojo', 'dijit', 'orion/uiUtils', 
 	var CommandPopupMenuItem = dojo.declare(dijit.PopupMenuItem, {
 		// Override setter for 'label' attribute to prevent the use of innerHTML
 		_setLabelAttr: function(content) {
-			this.containerNode.textContent = content;
+			if (typeof content === "string") {
+				this.containerNode.textContent = content;
+			} else {
+				dojo.empty(this.containerNode);
+				this.containerNode.appendChild(content);
+			}
 		}
 	});
Bug <I> - Make CommandPopupMenuItem consistent with other dijit wrappers
-Support a DomNode for its 'label' attribute