aboutsummaryrefslogtreecommitdiffstats
path: root/test/testabilityPatch.js
diff options
context:
space:
mode:
authorMisko Hevery2010-07-23 13:54:12 -0700
committerMisko Hevery2010-07-23 13:54:12 -0700
commitb2b170099f957e6575e309c35fed42915e95dd47 (patch)
tree20dbd10697fd207bc56b98ca6307bef46a4f5a86 /test/testabilityPatch.js
parent3b41979891f5dc6a68e05cd5ed9c355c34774193 (diff)
downloadangular.js-b2b170099f957e6575e309c35fed42915e95dd47.tar.bz2
fix issues with ie 7
Diffstat (limited to 'test/testabilityPatch.js')
-rw-r--r--test/testabilityPatch.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js
index b71943f6..5d0df780 100644
--- a/test/testabilityPatch.js
+++ b/test/testabilityPatch.js
@@ -63,6 +63,8 @@ function sortedHtml(element) {
html += '<' + node.nodeName.toLowerCase();
var attributes = node.attributes || [];
var attrs = [];
+ if (node.className)
+ attrs.push(' class="' + node.className + '"');
for(var i=0; i<attributes.length; i++) {
var attr = attributes[i];
if(attr.name.match(/^ng:/) ||
@@ -76,6 +78,7 @@ function sortedHtml(element) {
attr.name !='complete' &&
attr.name !='maxLength' &&
attr.name !='size' &&
+ attr.name !='class' &&
attr.name !='start' &&
attr.name !='tabIndex' &&
attr.name !='style' &&