diff --git a/lib/utils/gestures.js b/lib/utils/gestures.js index 8c5477d74..548b22865 100644 --- a/lib/utils/gestures.js +++ b/lib/utils/gestures.js @@ -147,7 +147,7 @@ function matchingLabels(el) { let root = el.getRootNode(); // if there is an id on `el`, check for all labels with a matching `for` attribute if (el.id) { - let matching = root.querySelectorAll(`label[for = ${el.id}]`); + let matching = root.querySelectorAll(`label[for = '${el.id}']`); for (let i = 0; i < matching.length; i++) { labels.push(/** @type {!HTMLLabelElement} */(matching[i])); }