New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 687506 link

Starred by 2 users

Issue metadata

Status: Archived
Owner:
Last visit 29 days ago
Closed: Oct 31
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Accessing the current selection from the Console through $0 returns null when selection is within a template.

Reported by krist...@derfor.dk, Feb 1 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36

Steps to reproduce the problem:
1. Create an HTML file with the contents:
`<html>
<body>
<template><p>Hello, world</p></template>
</body>
</html>`
2. Open the file in the browser.
3. Open DevTools.
4. Select the <p>Hello, world</p> element in the Elements tab in DevTools.
5. Press Console (or ESC).
6. In the Console, write $0.

What is the expected behavior?
$0 should return <p>Hello, world</p>.

What went wrong?
$0 returns null.

Did this work before? N/A 

Chrome version: 55.0.2883.95  Channel: n/a
OS Version: OS X 10.11.6
Flash Version: Shockwave Flash 24.0 r0

When the element <p>Hello world</p> is selected in the Elements tab, "== $0" is appended like with any other selection, suggesting that this should work.
 
Labels: Needs-Milestone

Comment 2 by ajha@chromium.org, Feb 2 2017

Cc: ajha@chromium.org
Labels: -Needs-Milestone M-58 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
I am able to observe the behavior on Windows-10, Mac OS 10.12.2 and Linux Ubuntu 14.04 using the latest canary(58.0.2300.0). Same behavior is seen on older chrome version(30.0.1549.0) as well.

Note: Worked fine on Firefox selecting the <template>..</template>.


687506.html
74 bytes View Download
Owner: lushnikov@chromium.org
Status: Assigned (was: Untriaged)
Status: Archived (was: Assigned)
Bulk closing low-priority issues with no activity. Please re-file and refer to the closed issue if it's essential to fix.

Sign in to add a comment