mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 15:40:22 +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();
|
||||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue