Skip to content

Commit 27c0006

Browse files
fix: fix typeof check for HTMLFormElement
1 parent baa87c2 commit 27c0006

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/element-internals.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ if (!isElementInternalsSupported()) {
375375
* Keeps the polyfill from throwing in environments where HTMLFormElement
376376
* is undefined like in a server environment
377377
*/
378-
if (HTMLFormElement) {
378+
if (typeof HTMLFormElement !== 'undefined') {
379379
patchFormPrototype();
380380
}
381381

0 commit comments

Comments
 (0)