title: Raphael.js attributes and VML
body: <p>With Raphael I would like to create a rectangle with an Id attribute like the example below.</p>
  
  <pre><code>&lt;rect id="aRect" x="10" y="10" width="50" height="50" r="2" rx="2" ry="2"/&gt;
  </code></pre>
  
  <p>To create the rectangle I can use code like this</p>
  
  <pre><code>var elem = _paper.rect(10, 10, 50, 50, 2);
  </code></pre>
  
  <p>and set the Id using code like this</p>
  
  <pre><code>elem[0].setAttributeNS(null, 'id', 'aRect');
  </code></pre>
  
  <p>or with code like this</p>
  
  <pre><code>elem.node.id = 'aRect';
  </code></pre>
  
  <p>now raphael falls back to vml on older IE's right how can I add an id attribute that also caters for the vml case or does this code work for that too?</p>