mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-03-30 17:03:39 +08:00
tests pass on chrome
This commit is contained in:
@@ -64,16 +64,12 @@ function sortedHtml(element) {
|
||||
}
|
||||
attrs.sort();
|
||||
html += attrs.join('');
|
||||
var style = [];
|
||||
for(var name in node.style) {
|
||||
var value = node.style[name];
|
||||
if (value && isString(value) && (name != 1*name) && (name != 'cssText')) {
|
||||
style.push(name + ': ' + value + ';');
|
||||
}
|
||||
}
|
||||
style.sort();
|
||||
if (style.length) {
|
||||
html += ' style="' + style.join(' ') + '"';
|
||||
if (node.style && node.style.cssText) {
|
||||
var style = node.style.cssText.split('; ');
|
||||
style.sort();
|
||||
if (style[0] == '')
|
||||
style.shift();
|
||||
html += ' style="' + style.join('; ') + ';"';
|
||||
}
|
||||
html += '>';
|
||||
var children = node.childNodes;
|
||||
|
||||
Reference in New Issue
Block a user