Store as global variable doesn't work on logged DOM elements
Reported by
m...@mostlystatic.com,
Apr 25 2016
|
|||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36
Steps to reproduce the problem:
1. In the console `document.createElement("div")`
2. Right-click on the evaluation result
What is the expected behavior?
"Store as global variable" should show up in the context menu.
What went wrong?
I can't store the element as a global variable and my reference to it is lost.
It works fine when using `dir(document.createElement("div"))`, but it should also work with the default representation.
Did this work before? No
Chrome version: 49.0.2623.112 Channel: stable
OS Version: OS X 10.11.2
Flash Version: Shockwave Flash 21.0 r0
,
Jul 29 2016
,
Dec 8 2017
You need to do dir($0). We are considering making JS representation default though. |
|||
►
Sign in to add a comment |
|||
Comment 1 by allada@chromium.org
, Apr 25 2016Status: Available (was: Unconfirmed)