This commit is contained in:
Misko Hevery
2010-04-19 14:41:36 -07:00
parent 618a2b423d
commit 9f9bdcf3d1
6 changed files with 13 additions and 13 deletions

View File

@@ -77,13 +77,12 @@ function sortedHtml(element) {
for(var css in node.style){
var value = node.style[css];
if (isString(value) && isString(css) && css != 'cssText' && value && (1*css != css)) {
var value = node.style[css];
var text = css + ': ' + value;
if (value != 'false' && indexOf(style, text) == -1) {
style.push(text);
}
}
};
}
style.sort();
if (style.length) {
html += ' style="' + style.join('; ') + ';"';