Open
Bug 1422178
Opened 8 years ago
Updated 3 years ago
Inspector removes whitespace in comments
Categories
(DevTools :: Inspector, enhancement, P3)
Tracking
(Not tracked)
NEW
People
(Reporter: shobson, Unassigned)
References
Details
Some sites include ASCII art in the body of their HTML hidden by comments. Example: https://www.mozilla.org/
When viewing source you can see the ASCII art clearly but when viewing the comment in the Inspector the whitespace is removed and the ASCII art becomes random characters.
Comment 1•8 years ago
|
||
Thanks for filing Stephanie. It looks like it's a simple case of white-space:pre; in CSS. But I'm not sure what the implications of changing this will be yet.
I think the code is here: https://searchfox.org/mozilla-central/rev/7f45cb7cc0229398fc99849bdc150cb6462d6966/devtools/client/inspector/markup/views/text-editor.js#70-85
It is used for both simple text nodes and comment nodes.
I think in some cases we cut down these nodes if the content is too long. So we'll need to keep that in mind when working on this bug.
Priority: -- → P3
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•3 years ago
|
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•