diff --git a/src/language-html/printer-htmlparser2.js b/src/language-html/printer-htmlparser2.js
index 21e2a491c..cbdd1f0ff 100644
--- a/src/language-html/printer-htmlparser2.js
+++ b/src/language-html/printer-htmlparser2.js
@@ -202,6 +202,7 @@ function genericPrint(path, options, print) {
}
}
+// https://html.spec.whatwg.org/multipage/indices.html#attributes-3
function isBooleanAttributeNode(node) {
return (
node.type === "attribute" &&