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

Issue 761984 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Last visit 28 days ago
Closed: Dec 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 3
Type: Bug



Sign in to add a comment

' ' rendered as ' ' when 'text' and 'html'

Reported by davidmax...@gmail.com, Sep 5 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36

Steps to reproduce the problem:
1. http://jsbin.com/qamequfeco/1/edit?html,output
2. inspect '><'
3. open body
4. try to use 'edit as html' and 'edit as text' to get it to render a space, as expected

What is the expected behavior?
inspector converts all characters into their rendered equivalents, and shows `> <`

What went wrong?
it shows `>&nbsp;<` - ie converts every character except the space.

Did this work before? N/A 

Chrome version: 60.0.3112.113  Channel: stable
OS Version: 10.0
Flash Version: 

quite possibly this is intentional...although it is quite confusing if the only character being rendered is '&nsbp;'
 
Cc: sc00335...@techmahindra.com
Labels: Triaged-ET M-63 Needs-Triage-M60 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Tested the issue on 60.0.3112.113 using Windows 7,Ubuntu 14.04 and Mac 10.12.6 with steps mentioned below and is reproducible

1.Navigated to http://jsbin.com/qamequfeco/1/edit?html,output , inspected "> <"
2.Used Edit as HTML / Edit as Text and seeing >&nbsp;< instead of > <

Same behaviour is seen in M50[50.0.2661.66] and Firefox too

Hence marking it as untriaged and adding appropriate labels for further inputs from respective team.
Labels: -Pri-2 Pri-3
Owner: lushnikov@chromium.org
Status: Assigned (was: Untriaged)
Protocol wise here's what happening:

{"id":117,"method":"DOM.getOuterHTML","params":{"nodeId":6}}
{"id":117,"result":{"outerHTML":"\u003Cmy-element\u003E\n  &gt;&nbsp;&lt;\n\u003C/my-element\u003E"}}

{"id":119,"method":"DOM.setOuterHTML","params":{"nodeId":6,"outerHTML":"<my-element>\n  &gt;  \n    .\n     &nbsp;&lt;\n</my-element>"}}
{"id":119,"result":{}}

{"method":"DOM.characterDataModified","params":{"nodeId":8,"characterData":"\n  \u003E  \n    .\n     \u00A0\u003C\n"}}


-----------

And $0.innerHTML shows
"
  &gt;  
    .
     &nbsp;&lt;
"


So it's rendering it out wrong to the user in devtools, but at a page level, things are correct.




Status: WontFix (was: Assigned)
Closing as WontFix due to lack priority / resources.

Sign in to add a comment