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 descriptionUserAgent: 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 .
,
Feb 2 2017
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.
,
Feb 2 2017
,
Dec 5 2017
Indeed, templates are not editable through DevTools. |
||||
►
Sign in to add a comment |
||||
Comment 1 by nyerramilli@chromium.org
, Feb 1 2017