Zero-width joiners and other hidden Unicode characters in #text nodes are not displayed in the Web Inspector.
1) Open this web page:
2) Select the "foo" in the "foo * bar" sample code
3) Inspect the element
4) Look at the nodeValue for the #text node
All the Unicode code points in the element should be visible. Chrome displays the HTML entities for the Unicode code points contained within the element:
Text value is displayed as " foo ".
*** Bug 220831 has been marked as a duplicate of this bug. ***
What do we want to display escaped? General category C*? Some of White_Space=yes, as well, probably?
> What do we want to display escaped? General category C*? Some of White_Space=yes, as well, probably?
Oh, finding a unicode category of them also would be nice, it should contain what WebKit initially started at Bug 93888 and ended up to be https://source.chromium.org/chromium/chromium/src/+/master:third_party/devtools-frontend/src/front_end/elements/ElementsTreeOutline.js;l=1679?q=MappedCharToEntity&ss=chromium I started a draft based on the two on https://pastebin.com/1hVMRLD3