Closed Bug 92196 Opened 24 years ago Closed 20 years ago

View / Page Source doesn't show some characters

Categories

(Core :: DOM: HTML Parser, defect)

x86
Linux
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 43267

People

(Reporter: carljohan, Assigned: c)

References

()

Details

Attachments

(1 file)

When trying to look at the source for http://www.math.fu-berlin.de/~guckes/afw/#uucode I noticed that a "-character was missing in the source view that should have been there. To repeat: Try http://www.math.fu-berlin.de/~guckes/afw/#uucode View / Page Source Expected result: The source source should be the following, <xmp> Johan Forsberg <d92-jfo@nada.kth.se> 961220 begin 600 sword.gif Y1TE&.#=A0 @ ( /___RP 0 @ "BHR/J<OM#Z.<M-KK :\Z]@%H<AEF(A\X*&B Y64O!DTH_FBS5,6O@:7_Q^!J?TI UJNAFJ)OMISRYID3H[K1DC)*@TH8G#8O'Y++":TX#CVHLM?UB YKX7TNOV.MN*W\$1>O@!(EC6S9W@84A34=Z9G",38(\-5A6AY)^84.::YF2GH&2HZ2EIJ>BI6 [ end </xmp> ^ |-the "-char Acctual result: The source shown is, <xmp> Johan Forsberg <d92-jfo@nada.kth.se> 961220 begin 600 sword.gif Y1TE&.#=A0 @ ( /___RP 0 @ "BHR/J<OM#Z.<M-KK :\Z]@%H<AEF(A\X*&B Y64O!DTH_FBS5,6O@:7_Q^!J?TI UJNAFJ)OMISRYID3H[K1DC)*@TH8G#8O'Y++:TX#CVHLM?UB YKX7TNOV.MN*W\$1>O@!(EC6S9W@84A34=Z9G",38(\-5A6AY)^84.::YF2GH&2HZ2EIJ>BI6 [ end </xmp> ^ |- missing " The "-character just isn't there. And since it is a uuencoded gif-file, uudecode will report a "short file" error without the "-char. I've tried this with the latest Mozilla that ships with Gnome-1.4 and the latest nighly, both with the same result. The NGLayout renders the page correctly, but the source viewer just drops the ". When I copy paste from the page source window, the " is still missing.
The problem is your use of "<" in HTML. You should be escaping it as &lt; The parser thinks that you're starting tags at: <d92-jfo and <OM As a result part of the text is treated as an attribute, making this a duplicate of bug 57724, most likely.
Component: Browser-General → Parser
Summary: View / Page Source doesn't show some characters → View / Page Source doesn't show some characters
reassign for real
Assignee: asa → harishd
Status: UNCONFIRMED → NEW
Ever confirmed: true
QA Contact: doronr → bsharma
The screenshot shows how it looks in my tree. Note that it includes a general change of parser behavior I'll propose: '<' will close an unclosed start tag. Also, some "generated content" is inserted (but marked as such). You'll be able to suppress it with ".generated-content { display: none }". *** This bug has been marked as a duplicate of 57724 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
QA Contact: bsharma → moied
Reopening 57724 dependencies for independent resolution.
Status: RESOLVED → REOPENED
Depends on: 57724
Resolution: DUPLICATE → ---
--> Clarence
Assignee: harishd → c
Status: REOPENED → NEW
The problems with quotes in (and around) attributes is covered by bug 43267. *** This bug has been marked as a duplicate of 43267 ***
Status: NEW → RESOLVED
Closed: 24 years ago20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: