+ },\r
+ \r
+ assertDomEqual: function(lhs, rhs) {\r
+ lhs = lhs.clone();\r
+ var rhsArr = $.parseHTML(rhs);\r
+ if(rhsArr.length === 1) {\r
+ rhs = $(rhsArr[0]);\r
+ } else {\r
+ rhs = $('<div>');\r
+ $.each(rhsArr, function(i, el) {\r
+ rhs.append(el);\r
+ }); \r
+ }\r
+ if(lhs.length > 1) {\r
+ lhs = $('<div>').append(lhs);\r
+ }\r
+ lhs.attr('id', '');\r
+ rhs.attr('id', '');\r
+ lhs.find('*').each(function() {$(this).attr('id', '');});\r
+ rhs.find('*').each(function() {$(this).attr('id', '');});\r
+ return chai.assert.ok(lhs[0].isEqualNode(rhs[0]), 'nodes are equal');\r