title: How to get "data" attribute in ie 7?
body: <p>I use "data" attribute and in IE7 and I don't know how to get value of it. Can jQuery possibly help me?</p>
  
  <p>I have this</p>
  
  <pre><code>window.event.srcElement.getAttribute('data-pk')
  </code></pre>
  
  <p>Of course it does not work. </p>
  
  <h1>Edit:</h1>
  
  <pre><code>for (i=0; i &lt; max; i++) {
  
      if (typeof attachEvent == 'undefined'){         
          //open[i].addEventListener('click', function(e){ openSlide(e.currentTarget.getAttribute('data-pk')), false});
          open[i].onclick = function(e){ openSlide(e.currentTarget.getAttribute('data-pk')), false};
      } else {
          open[i].attachEvent('onclick', function(){
              openSlide(window.event.srcElement.getAttribute('data-pk'))}, false);
      };
  };
  </code></pre>
  
  <p>html</p>
  
  <pre><code>&lt;div&gt;                             
      &lt;img class='image' data-pk='18' src='/site_media/media/img/120x180.jpg'&gt;                             
      &lt;img class='image' data-pk='13' src='/site_media/media/img/007b-300x224.jpg'&gt;                             
      &lt;img class='image' data-pk='15' src='/site_media/media/img/IMG_0549_1.jpg'&gt;                             
  &lt;/div&gt; 
  </code></pre>