After selecting an element, typing $0
in the console doesn't give me preview of the result. It simply suggests from history. However, document.querySelector
works fine. I'm using Edge 122.0.2365.92
.
I expect devtools to eager evaluate the expression $0
, preview the result and provide auto-completion based on that, just like document.querySelector
would.
Also tried on Chrome 122.0.6261.131
, but it behaves the same as Edge.
I can reproduce this issue on latest version of both Edge and Chrome. However, for Edge, 121.0.2277.112 shows the eager evaluation for $0
as expected.
Seems like a new issue on the latest version of Chromium, so I suggest you create a post on https://issues.chromium.org/.