Skip to content

Commit

Permalink
Update Parse.js
Browse files Browse the repository at this point in the history
Font icons are rendering fine in chrome but not in firefox. It just renders as a box.
niklasvh#314
  • Loading branch information
kabushi committed May 5, 2014
1 parent 454524c commit 0744de8
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/Parse.js
Expand Up @@ -958,14 +958,18 @@ _html2canvas.Parse = function (images, options, cb) {

elps.className = pseudoHide + "-element ";

Object.keys(elStyle).filter(indexedProperty).forEach(function(prop) {
//Object.keys(elStyle).filter(indexedProperty).forEach(function(prop) {
for (var prop in elStyle) {
if (indexedProperty(prop) && prop !== 'cssText') {
// Prevent assigning of read only CSS Rules, ex. length, parentRule
try {
elps.style[prop] = elStyle[prop];
} catch (e) {
Util.log(['Tried to assign readonly property ', prop, 'Error:', e]);
try {
elps.style[prop] = elStyle[prop];
} catch (e) {
Util.log(['Tried to assign readonly property ', prop, 'Error:', e]);
}
}
});
}
//});

if(isImage) {
elps.src = Util.parseBackgroundImage(content)[0].args[0];
Expand Down Expand Up @@ -1280,4 +1284,4 @@ _html2canvas.Parse = function (images, options, cb) {
}
}
}
};
};

0 comments on commit 0744de8

Please sign in to comment.