diff --git a/examples/basic_init/zero_config.html b/examples/basic_init/zero_config.html
index a7dc1822..ad97d80e 100644
--- a/examples/basic_init/zero_config.html
+++ b/examples/basic_init/zero_config.html
@@ -28,7 +28,6 @@
Live example
-
diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js
index 08ec04c3..04898bbe 100644
--- a/media/js/jquery.dataTables.js
+++ b/media/js/jquery.dataTables.js
@@ -6293,6 +6293,14 @@
oSettings.sInstance = _oExt._oExternConfig.iNextUnique ++;
}
+ /* Sanity check */
+ if ( this.nodeName.toLowerCase() != 'table' )
+ {
+ _fnLog( oSettings, 0, "Attempted to initialise DataTables on a node which is not a "+
+ "table: "+this.nodeName );
+ return;
+ }
+
/* Store 'this' in the settings object for later retrieval */
oSettings.oInstance = _that;