diff --git a/lib/output-engine/dom/container.js b/lib/output-engine/dom/container.js
index <HASH>..<HASH> 100644
--- a/lib/output-engine/dom/container.js
+++ b/lib/output-engine/dom/container.js
@@ -180,7 +180,7 @@ var proto = {
 		return this;
 	},
 	removeChild: function(child) {
-		if (typeof child === 'number') {
+		if (typeof child !== 'object') {
 			var index = child;
 			child = this.childNodes[index];
 			if (!child)
Container :  .removeChild : check if is not object in place of is number