New issue
Advanced search Search tips

Issue 606266 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Dec 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

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
 

Comment 1 by allada@chromium.org, Apr 25 2016

Owner: l...@chromium.org
Status: Available (was: Unconfirmed)
Status: Assigned (was: Available)
Status: WontFix (was: Assigned)
You need to do dir($0). We are considering making JS representation default though.

Sign in to add a comment