mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-08 23:04:45 +00:00
tests pass on chrome
This commit is contained in:
parent
7c49b25548
commit
e8ac57caae
1 changed files with 6 additions and 10 deletions
|
|
@ -64,16 +64,12 @@ function sortedHtml(element) {
|
||||||
}
|
}
|
||||||
attrs.sort();
|
attrs.sort();
|
||||||
html += attrs.join('');
|
html += attrs.join('');
|
||||||
var style = [];
|
if (node.style && node.style.cssText) {
|
||||||
for(var name in node.style) {
|
var style = node.style.cssText.split('; ');
|
||||||
var value = node.style[name];
|
style.sort();
|
||||||
if (value && isString(value) && (name != 1*name) && (name != 'cssText')) {
|
if (style[0] == '')
|
||||||
style.push(name + ': ' + value + ';');
|
style.shift();
|
||||||
}
|
html += ' style="' + style.join('; ') + ';"';
|
||||||
}
|
|
||||||
style.sort();
|
|
||||||
if (style.length) {
|
|
||||||
html += ' style="' + style.join(' ') + '"';
|
|
||||||
}
|
}
|
||||||
html += '>';
|
html += '>';
|
||||||
var children = node.childNodes;
|
var children = node.childNodes;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue