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

Issue 687498 link

Starred by 2 users

Issue metadata

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



Sign in to add a comment

Editing a template's content from DevTools (that has been added through JavaScript) does not persist the changes in the DOM.

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>
</body>
</html>`
2. Open the file in the browser.
3. Open DevTools.
4. Right-click <body>, click "Edit as HTML" and insert "<template></template>" in the body.
5. Click outside of the editing region for the changes to take effect.
6. Right-click <template>, click "Edit as HTML" and insert anything into the <template> tag (e.g. insert "Hello, world!").

What is the expected behavior?
The <template> tag should now contain a #document-fragment" with whatever content that was added (e.g. "Hello, world!").

What went wrong?
The <template> contains an empty #document-fragment.

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

Related to  issue 686058 .

 
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 reproduce the issue on the latest canary(58.0.3000.0) on Windows-10, Mac OS 10.12.2 and Linux Ubuntu 14.04. Similar behavior is observed on older chrome version: 30.0.1549.0. Attached is the screenshot of the same.

Marking this as Untriaged for more inputs on this.


687498.html
32 bytes View Download
Owner: lushnikov@chromium.org
Status: Assigned (was: Untriaged)
Indeed, templates are not editable through DevTools.

Sign in to add a comment