diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js
index e1db7ad38..4eecc1997 100644
--- a/IPython/html/static/notebook/js/notebook.js
+++ b/IPython/html/static/notebook/js/notebook.js
@@ -379,7 +379,7 @@ define([
* @return {jQuery} A selector of all cell elements
*/
Notebook.prototype.get_cell_elements = function () {
- return this.container.children("div.cell");
+ return this.container.find(".cell").not('.cell .cell');
};
/**