Displaying special entity in html editing
Reported by
mateus.a...@betha.com.br,
Jun 8 2018
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36 Steps to reproduce the problem: 1. Console 2. Elements 3. Select a node with any attribute value that has the "&" 4. Right-click this node 5. Edit as HTML 6. It will show & What is the expected behavior? Display original char. What went wrong? Displaying special entity instead of original char. Did this work before? N/A Chrome version: 67.0.3396.79 Channel: stable OS Version: 10.0 Flash Version:
,
Jun 11 2018
Able to reproduce the issue on chrome reported version 67.0.3396.79 and on latest chrome 69.0.3453.3 using Windows-10, Ubuntu 14.04 and Mac 10.13.3. As this issue is seen from M-60(60.0.3112.0), hence considering this issue as Non-Regression and marking it as Untriaged. Thanks!
,
Jun 11 2018
,
Jun 14 2018
Thanks for the report. Showing the "&" in the editor is actually intended behavior. When editing a node, DevTools shows an editor with the outerHTML, which the browser reports using these entities. Other characters also represent as entities in HTML, and evaluating 'outerHTML' reflects this: ` document.body.innerHTML = `><&`; console.log(document.body.outerHTML) ` The only supported way to edit HTML with non-HTML entities is by editing a file in Sources that is mapped to an HTML file: https://developers.google.com/web/tools/chrome-devtools/workspaces/#sources
,
Jun 14 2018
Ok. Thanks! |
||||
►
Sign in to add a comment |
||||
Comment 1 by krajshree@chromium.org
, Jun 11 2018