Closed
Bug 1043336
Opened 10 years ago
Closed 10 years ago
View selected source code interprets html instead of showing the real source
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 164906
People
(Reporter: tech, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0 (Beta/Release) Build ID: 20140605174243 Steps to reproduce: I am debugging a website in french Language and i try to find the best use of htmlentities. I open a page containing text converted with htmlentities. I select the text and open view selection source. Actual results: I see that all characters converted by htmlentities aren't converted. Expected results: I should see special chars converted in html like é
It is the same under Linux Debian or Windows 7 and the same with Firefox or Seamonkey
Here is a webpage to test : <html> <head> <title>Test</title> </head> <body> ëééèèààùùêâûîôäËÏÖÜ </body> </html> In the browser, this page shows : ëééèèààùùêâûîôäËÏÖÜ if you select this string and right click on view selection source, it shows : ëééèèààùùêâûîôäËÏÖÜ instead of ëééèèààùùêâûîôäËÏÖÜ
Flags: needinfo?(tech)
Comment 4•10 years ago
|
||
Right, so this is because "view selection source" operates on the generated DOM (which it has to, because what if you manipulate the DOM with JS and the user selects bits of it?). document.body.innerHTML doesn't have the entities anymore, hence why you're seeing what you're seeing. This looks like a straight up duplicate of bug 164906 to me, which we can't fix (and is therefore marked "wontfix").
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•