diff --git a/src/modules/html.js b/src/modules/html.js
index 1cbae5bee..c8b6a5eff 100644
--- a/src/modules/html.js
+++ b/src/modules/html.js
@@ -246,7 +246,7 @@ import { globalObject } from "../libs/globalObject.js";
case "string":
return "string";
case "element":
- return src.nodeName.toLowerCase === "canvas" ? "canvas" : "element";
+ return src.nodeName.toLowerCase() === "canvas" ? "canvas" : "element";
default:
return "unknown";
}