canvas.toDataURL("image/png") throws security error exception WORDPRESS
<p>I am using Wordpress and project root directory is <code>undersubdirectory</code>, i.e <code>http:localhost/prjctroot/project</code>.</p>

<pre><code>var oCanvas     =   document.getElementById("image1");
var canvasData  =   oCanvas.toDataURL("image/png");
</code></pre>

<p>Getting this error in Firebug:</p>

<pre><code>Security error
var canvasData  =   oCanvas.toDataURL("image/png");
</code></pre>

<p>Same code works on other test file (not using any CMS just a simple file code for test).</p>

<p>I think some thing is wrong with Wordpress. </p>

<p>Can anyone help?</p>
