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
constjsdom=require("jsdom");const{JSDOM}=jsdom;constdom=newJSDOM(`<!DOCTYPE html><myElement>Hello world</myElement>`);console.log(dom.window.document.querySelector("myelement").textContent);// works in 24.1.1, 23.2.0 and 23.1.0console.log(dom.window.document.querySelector("myElement").textContent);// error in 24.1.1, works in 23.2.0 and 23.1.0
How does similar code behave in browsers?
In browser case doesn't matter, document.querySelector('div') or document.querySelector('dIV') leads to the same result.
The text was updated successfully, but these errors were encountered:
Basic info:
Minimal reproduction case
How does similar code behave in browsers?
In browser case doesn't matter,
document.querySelector('div')
ordocument.querySelector('dIV')
leads to the same result.The text was updated successfully, but these errors were encountered: