title: Masonry not working in IE 7. SCRIPT5009: 'Element' is undefined masonry.pkgd.min.js, line 9 character 6316
body: <p>I have a strange issue with the latest version of masonry. Got it to work before but for a new project I downloaded the latest versions of both jQuery and Masonry, and all works fine. Except IE7 won't load the Masonry library due to an error in the plugin so it seems.</p>
  
  <p>I got this error in the IE7 console:</p>
  
  <p><img src="https://i.stack.imgur.com/Vedz0.png" alt="enter image description here"></p>
  
  <p>This is the entire code of my test-file, so anybody can quickly reproduce it:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Test&lt;/title&gt;
  &lt;script type='text/javascript' src='jquery-1.10.1.min.js'&gt;&lt;/script&gt;
  &lt;script type='text/javascript' src='masonry.pkgd.min.js?ver=3.0.0'&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  Test
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Am I missing something obvious or is Masonry no longer compatible with IE7? I didn't find anything about this on the website.</p>
  
  <p>As you can see I'm using jQuery 1.10.1 and Masonry 3.0.0</p>
  
  <p>Edit: I tried with the non-minimized version, and I get</p>
  
  <pre><code>SCRIPT5009: 'Element' is undefined
  masonry.pkgd.js, line 914 character 1
  </code></pre>
  
  <p>Strange, because there is nothing called <code>Element</code> on that line..</p>
  
  <p>here's a snippet of masonry.pkgd.js:</p>
  
  <pre><code>911    /*jshint browser: true, strict: true, undef: true, unused: true */
  912    /*global define: false */
  913    
  914    ( function( global, ElemProto ) {
  915    
  916      'use strict';
  917    
  918      var matchesMethod = ( function() {
  919        // check un-prefixed
  920        if ( ElemProto.matchesSelector ) {
  921          return 'matchesSelector';
  922        }
  </code></pre>