diff --git a/lib/utils/gestures.js b/lib/utils/gestures.js index 601409defa..3a87b953d1 100644 --- a/lib/utils/gestures.js +++ b/lib/utils/gestures.js @@ -125,7 +125,7 @@ function canBeLabelled(el) { * @return {!Array} Relevant label for `el` */ function matchingLabels(el) { - let labels = [...(/** @type {HTMLInputElement} */((el).labels || []))]; + let labels = Array.prototype.slice.call(/** @type {HTMLInputElement} */(el).labels); // IE doesn't have `labels` and Safari doesn't populate `labels` // if element is in a shadowroot. // In this instance, finding the non-ancestor labels is enough,