Skip to content

Commit

Permalink
Merge branch 'master' into issue/CIF-2898
Browse files Browse the repository at this point in the history
  • Loading branch information
LSantha authored Sep 21, 2022
2 parents 871444c + 2dd2b2c commit 181aadb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ class ProductCollection {

// Parse response and only select product items
let text = await response.text();
let domParser = new DOMParser();
let more = domParser.parseFromString(text, 'text/html');
let more = document.createRange().createContextualFragment(text);
let moreItems = more.querySelectorAll(ProductCollection.selectors.item);

// Append new product items to existing product gallery
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ class ProductCollection {

// Parse response and only select product items
let text = await response.text();
let domParser = new DOMParser();
let more = domParser.parseFromString(text, 'text/html');
let more = document.createRange().createContextualFragment(text);
let moreItems = more.querySelectorAll(
ProductCollection.selectors.item + ', ' + ProductCollection.selectors.xfitem
);
Expand Down

0 comments on commit 181aadb

Please sign in to comment.