Skip to content

Commit

Permalink
Update comment to link to issue
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Hulce <patrick.hulce@gmail.com>
  • Loading branch information
csabapalfi and patrickhulce committed Oct 1, 2020
1 parent 580f15f commit b736af3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lighthouse-core/lib/page-functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ function getOuterHTMLSnippet(element, ignoreAttrs = [], snippetCharacterLimit =
}

const clone = element.cloneNode();
// prevent any potential side-effects by appending to a template element
// Prevent any potential side-effects by appending to a template element.
// See https://github.com/GoogleChrome/lighthouse/issues/11465
const template = element.ownerDocument.createElement('template');
template.content.append(clone);
ignoreAttrs.concat(autoFillIgnoreAttrs).forEach(attribute =>{
Expand Down

0 comments on commit b736af3

Please sign in to comment.