{"id":315,"date":"2022-08-30T14:59:18","date_gmt":"2022-08-30T14:59:18","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/10\/18\/masonry-not-working-in-ie-7-script5009-element-is-undefined-masonry-pkgd-min-js-line-9-character-6316-record-and-share-programming-errors\/"},"modified":"2022-08-30T14:59:18","modified_gmt":"2022-08-30T14:59:18","slug":"masonry-not-working-in-ie-7-script5009-element-is-undefined-masonry-pkgd-min-js-line-9-character-6316-record-and-share-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/masonry-not-working-in-ie-7-script5009-element-is-undefined-masonry-pkgd-min-js-line-9-character-6316-record-and-share-programming-errors\/","title":{"rendered":"Masonry not working in IE 7. SCRIPT5009: &#39;Element&#39; is undefined masonry.pkgd.min.js, line 9 character 6316-Record and share programming errors"},"content":{"rendered":"<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&#8217;t load the Masonry library due to an error in the plugin so it seems.<\/p>\n<p>I got this error in the IE7 console:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/Vedz0.png\" \/><\/p>\n<p>This is the entire code of my test-file, so anybody can quickly reproduce it:<\/p>\n<pre><code>\n\n\nTest\n\n\n\n\nTest\n\n\n<\/code><\/pre>\n<p>Am I missing something obvious or is Masonry no longer compatible with IE7? I didn&#8217;t find anything about this on the website.<\/p>\n<p>As you can see I&#8217;m using jQuery 1.10.1 and Masonry 3.0.0<\/p>\n<p>Edit: I tried with the non-minimized version, and I get<\/p>\n<pre><code>SCRIPT5009: 'Element' is undefined\nmasonry.pkgd.js, line 914 character 1\n<\/code><\/pre>\n<p>Strange, because there is nothing called <code>Element<\/code> on that line..<\/p>\n<p>here&#8217;s a snippet of masonry.pkgd.js:<\/p>\n<pre><code>911    \/*jshint browser: true, strict: true, undef: true, unused: true *\/\n912    \/*global define: false *\/\n913    \n914    ( function( global, ElemProto ) {\n915    \n916      'use strict';\n917    \n918      var matchesMethod = ( function() {\n919        \/\/ check un-prefixed\n920        if ( ElemProto.matchesSelector ) {\n921          return 'matchesSelector';\n922        }\n<\/code><\/pre>\n<p id=\"rop\"><small>Originally posted 2013-10-18 07:44:03. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<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&#8217;t load the Masonry library due to an error in the plugin so it seems. I got this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-315","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=315"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/315\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}