Javascript Error on Chrome - Solution
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
typeface.js |
New
|
Undecided
|
Unassigned |
Bug Description
The error appears on the last release of Google Chrome (13) :
Line 791 : Uncaught TypeError: Cannot read property 'length' of null
So i try to redefine this length property.
Here is my solution :
- line 455 : add "+2" in the height of the canvas element.
replace
canvas.height = Math.round(
by
canvas.height = Math.round(
- line 790 : add the following line between line 790 and line 791
var lengthStyleSheet = (styleSheet.
- line 791 : change the last parameter in the insertRule function
replace
document.
by
document.
- lines 801 and 826 : change the same parameter
replace
styleSheet.
by
lengthStyleSheet
The patched script in the attachment