Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed a bug that caused Cufon.refresh() (or multiple .replace() calls…

… on the same element) to fail.
  • Loading branch information...
commit e9aec842d6655ecc8636b7c44be31c08fc8ce4db 1 parent d626df1
@sorccu authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/cufon.js
4 js/cufon.js
@@ -846,7 +846,7 @@ Cufon.registerEngine('canvas', (function() {
var redraw = (text === null);
- if (redraw) text = node.alt;
+ if (redraw) text = node.getAttribute('alt');
var viewBox = font.viewBox;
@@ -890,7 +890,7 @@ Cufon.registerEngine('canvas', (function() {
else {
wrapper = document.createElement('cufon');
wrapper.className = 'cufon cufon-canvas';
- wrapper.alt = text;
+ wrapper.setAttribute('alt', text);
kangax added a note

Would you mind explaining when it is exactly that property setter was failing but not setAttribute?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
canvas = document.createElement('canvas');
Please sign in to comment.
Something went wrong with that request. Please try again.