WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
158385
REGRESSION: $1 doesn't work in console after selecting an element in jsfiddle
https://bugs.webkit.org/show_bug.cgi?id=158385
Summary
REGRESSION: $1 doesn't work in console after selecting an element in jsfiddle
Ryosuke Niwa
Reported
2016-06-04 15:53:02 PDT
Reproduction steps: 1. Open
https://jsfiddle.net/kLtkjmLe/
2. Inspect "y" in the view 3. Type "$1" Expected result: I can access the selected element. Actual result: Get "ReferenceError: Can't find variable".
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2016-06-04 15:53:21 PDT
<
rdar://problem/26639517
>
Ryosuke Niwa
Comment 2
2016-06-04 15:58:34 PDT
This was tested on the latest Safari Tech Preview.
Timothy Hatcher
Comment 3
2016-06-04 17:33:01 PDT
You need to pick the result frame in the console context selector on the right side for $1 to work. We should auto switch this based on the selected frame/element in the DOM tree I think. I'm pretty sure we have other bugs about this.
Ryosuke Niwa
Comment 4
2016-06-06 01:09:00 PDT
(In reply to
comment #3
)
> You need to pick the result frame in the console context selector on the > right side for $1 to work. > > We should auto switch this based on the selected frame/element in the DOM > tree I think. I'm pretty sure we have other bugs about this.
I didn't know there was such a thing. I agree it would be great to automatically switch the context.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug