diff --git a/lib/utils/gestures.html b/lib/utils/gestures.html index c968bc914a..0bdbd961c3 100644 --- a/lib/utils/gestures.html +++ b/lib/utils/gestures.html @@ -140,7 +140,7 @@ * @return {!Array} Relevant label for `el` */ function matchingLabels(el) { - let labels = [...(/** @type {HTMLInputElement} */(el).labels || [])]; + let labels = Array.from(/** @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,