Closed Bug 393043 Opened 17 years ago Closed 17 years ago

Saving a valid XHTML page in full web mode results in invalid XHTML code

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 120556

People

(Reporter: vargenau, Unassigned)

Details

Attachments

(2 files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); fr-FR; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4 Build Identifier: Mozilla/5.0 (X11; U; Linux i686 (x86_64); fr-FR; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4 When the code is saved, it is rewritten and the "meta" and "link" elements in the <head> are incorrectly generated. The "/" end tag is not present. This results in invalid code. Reproducible: Always Steps to Reproduce: 1. Load a valid XHTML page in browser (e.g. page in attachment) 2. Save page in full HTML mode. 3. Validate the page with W3C validator Actual Results: The saved XHTML is invalid. *** Errors validating wrongsave2.html: *** Error at line 6, character 73: end tag for "meta" omitted; end tags are required in XML for non-empty elements; empty elements require an end tag or the start tag must end with "/>" Line 6, character 3: start tag was here Error at line 7, character 47: end tag for "meta" omitted; end tags are required in XML for non-empty elements; empty elements require an end tag or the start tag must end with "/>" Line 7, character 3: start tag was here Error at line 10, character 83: end tag for "link" omitted; end tags are required in XML for non-empty elements; empty elements require an end tag or the start tag must end with "/>" Line 10, character 3: start tag was here Error at line 11, character 73: end tag for "link" omitted; end tags are required in XML for non-empty elements; empty elements require an end tag or the start tag must end with "/>" Line 11, character 3: start tag was here Error at line 12, character 76: end tag for "link" omitted; end tags are required in XML for non-empty elements; empty elements require an end tag or the start tag must end with "/>" Line 12, character 3: start tag was here Error at line 13, character 114: end tag for "link" omitted; end tags are required in XML for non-empty elements; empty elements require an end tag or the start tag must end with "/>" Line 13, character 3: start tag was here Expected Results: Valid XHMTL code.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Is this bug going to be fixed? This is what I get: With WinXP pro SP2, FF 2.0.0.10 "Save As, Web Page complete" does not correctly save xhtml files although "Save As, Web Page, HTML only" does. "Save As, Web Page complete" removes the xhtml formatting, thereby saving as html, and ignoring the DOCTYPE which defines the page as xhtml 1.0 strict. I was unsure whether this is a new bug or an unfixed old one. It would seem, to me, easy to fix (just use the routines for "Save As, Web Page, HTML only" but apply different src locations for images, css and javascript.
Read bug 120556 comment 22 It essentially says if you are sending xhtml as html mime type to Firefox expect Firefox to save html not xhtml. If you want xhtml then send the file as xml.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: