KingPsychopath / explorercanvas

Automatically exported from code.google.com/p/explorercanvas
Apache License 2.0
0 stars 0 forks source link

Adding "px" when adding an attrbute. #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add an attribute to an element with:

var canvasElement = document.createElement('canvas');
canvasElement.setAttribute("width", "200px");

What is the expected output? What do you see instead?

The output should be a canvas with a width of 200px, instead IE gives an error.

What version of the product are you using? On what operating system?

Release 3.  Windows 7

Please provide any additional information below.

To solve the issue, remove the px.

Original issue reported on code.google.com by rbour...@gmail.com on 19 Oct 2010 at 2:43

GoogleCodeExporter commented 9 years ago
The width and height attributes don't have a unit, it is implicitly in pixels, 
so this is not an issue with ExCanvas.

Original comment by fabien.menager on 16 Jul 2011 at 11:24