{"id":1354,"date":"2022-08-30T15:15:50","date_gmt":"2022-08-30T15:15:50","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/13\/jquery-error-hierarchyrequesterror-dom-exception-3-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:15:50","modified_gmt":"2022-08-30T15:15:50","slug":"jquery-error-hierarchyrequesterror-dom-exception-3-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/jquery-error-hierarchyrequesterror-dom-exception-3-collection-of-common-programming-errors\/","title":{"rendered":"jQuery Error HierarchyRequestError: DOM Exception 3-Collection of common programming errors"},"content":{"rendered":"<p>I am using the jQuery quicksand plugin and am running into a jQuery error that I completely don&#8217;t understand what&#8217;s going on. Here is the error &#8220;Uncaught Error: HierarchyRequestError: DOM Exception 3&#8221; I do however know it has to do with a parent node issue but I am completely at a loss at how to fix it.<\/p>\n<p>Here is the code I&#8217;m using to filter my items in jQuery Quicksand. The filtering is working every once in a while but its pretty weird and random. Sometimes it works and other times it hides the items but they still take up space so it leaves a lot of white space. Something isn&#8217;t right&#8230; I wish I had more information as to whats going on.<\/p>\n<p>Any help would be very much appreciated! Thank you!<\/p>\n<pre><code>\n$(document).ready(function() {\n  \/\/ get the action filter option item on page load\n  var $filterType = $('#filterOptions li.active a').attr('class');\n\n  \/\/ get and assign the ourHolder element to the\n  \/\/ $holder varible for use later\n  var $holder = $('ul.ourHolder');\n\n  \/\/ clone all items within the pre-assigned $holder element\n  var $data = $holder.clone();\n\n  \/\/ attempt to call Quicksand when a filter option\n  \/\/ item is clicked\n  $('#filterOptions li a').click(function(e) {\n    \/\/ reset the active class on all the buttons\n    $('#filterOptions li').removeClass('active');\n\n    \/\/ assign the class of the clicked filter option\n    \/\/ element to our $filterType variable\n    var $filterType = $(this).attr('class');\n    $(this).parent().addClass('active');\n    if ($filterType == 'all') {\n      \/\/ assign all li items to the $filteredData var when\n      \/\/ the 'All' filter option is clicked\n      var $filteredData = $data.find('li');\n    }\n    else {\n      \/\/ find all li elements that have our required $filterType\n      \/\/ values for the data-type element\n      var $filteredData = $data.find('li[data-type=' + $filterType + ']');\n    }\n\n    \/\/ call quicksand and assign transition parameters\n    $holder.quicksand($filteredData, {\n      duration: 800,\n      easing: 'easeInOutQuad'\n    });\n    return false;\n  });\n});\n\n<\/code><\/pre>\n<p id=\"rop\"><small>Originally posted 2013-11-13 09:49:12. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am using the jQuery quicksand plugin and am running into a jQuery error that I completely don&#8217;t understand what&#8217;s going on. Here is the error &#8220;Uncaught Error: HierarchyRequestError: DOM Exception 3&#8221; I do however know it has to do with a parent node issue but I am completely at a loss at how to [&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-1354","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1354","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=1354"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1354\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}