mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 19:40:56 +08:00
fix issues with ie 7
This commit is contained in:
@@ -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' &&
|
||||
|
||||
Reference in New Issue
Block a user