Closed Bug 287358 Opened 20 years ago Closed 20 years ago

'save as' from 'view source' saves somethign different from what is displayed

Categories

(Core Graveyard :: View Source, defect)

1.7 Branch
x86
Windows NT
defect
Not set
major

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: rxm1676, Assigned: mrbkap)

Details

User-Agent:       Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7.2) Gecko/20040803
Build Identifier: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7.2) Gecko/20040803

I have a page that has the html
    <table>
    <caption>some text</caption>
    <tr> .....
    </table>
When I do a view source, this is indeed what I see. However if I then do a 'save
as' to save this to a file what I get is
     <table>
     <caption><h2>some text</h2></caption>
     ...
i.e. there is an extra <h2> tag pair. This may be triggered by the CSS I have
that  forces the caption to be bold and in a larger font.

The problems are:
1. This is *not*what I wrote.
2. It is invalid HTML. <h2> is not permitted within <caption>

If OTOH without doing a 'view source' I right click on the main page and do
'save page as' I get a completely different HTML file. This one contains <tbody>
and other tags that I did not use.

The reason for doing this is that I want to pass my HTML to validator.w3.org,
but since I am behind a firewall I cannot give the validator a URL, I have to
give it a file upload. It is therefore essential that what is saved is what I
actually wrote, not some fabricated HTML that does not even conform to the DTD.

Reproducible: Always



Expected Results:  
It should have save *exactly* what I wrote, and what was displayed in the 'view
source' pane.
Could you upload a testcase?
See Bug 236465 "Give the View Selection Source window a proper name"
(In reply to comment #2)
> See Bug 236465 "Give the View Selection Source window a proper name"

See Bug 57724 "View source munging pages (does not display original page source 
as sent by server)"

Bug 57724 Comment 145 

(I'm not claiming that this is a Dup or regression, merely that it has cropped
up before!).
Blocks: 288462
are you saving "HTML only" or "Web page, complete"?

If view source was fine, why did you file this in ViewSource component?

this has nothing to do with bug 288462, AFAICT
No longer blocks: 288462
Version: unspecified → 1.7 Branch
No response to Andrew's question, no testcase, no clear steps to reproduce...
Marking invalid until we have some information to work with.  At that point,
please reopen the bug.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Product: SeaMonkey → Core Graveyard
You need to log in before you can comment on or make changes to this bug.