You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error from node.querySelector(selector) if selector is undefined. For context if it helps, I'm using Quasar and opening a QDialog modal in my tests:
The code in Quasar seems to be relying on a null value being returned from a bad or non-existent selector and then checking for other selectors from there.
FWIW, it does seem odd to me to pass in an undefined or null to .querySelector(), but on the other hand, the browser appears to handle it just fine and not throw an error unless the selector is an empty string.
The text was updated successfully, but these errors were encountered:
This may be similar to: #540
I'm getting this error from
node.querySelector(selector)
ifselector
isundefined
. For context if it helps, I'm using Quasar and opening a QDialog modal in my tests:Seems to be coming from here: https://github.com/capricorn86/happy-dom/blob/master/packages/happy-dom/src/query-selector/QuerySelector.ts#L233
The code in Quasar seems to be relying on a
null
value being returned from a bad or non-existent selector and then checking for other selectors from there.If I try the same thing in a browser, I get:
FWIW, it does seem odd to me to pass in an
undefined
ornull
to.querySelector()
, but on the other hand, the browser appears to handle it just fine and not throw an error unless the selector is an empty string.The text was updated successfully, but these errors were encountered: