We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c98eb3c commit 69b71fdCopy full SHA for 69b71fd
lib/runtime/helpers/index.js
@@ -106,7 +106,7 @@ export const url = {
106
return (pathElemOrNode, params, options) => {
107
const createUrl = getCreateUrl(fragment.fragment)
108
// if we're dealing with a string, return the rendered url
109
- if (!(pathElemOrNode instanceof HTMLAnchorElement))
+ if (!(globalThis.HTMLElement && pathElemOrNode instanceof HTMLElement))
110
return createUrl(pathElemOrNode, params, options)
111
112
// if we're dealing with an anchor element, update it
0 commit comments