Closed Bug 289953 Opened 20 years ago Closed 19 years ago

XHTML Mimetype breaks Save Page as... (Web Page Complete)

Categories

(Firefox :: File Handling, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: 01908667, Assigned: bugs)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.6) Gecko/20050321 Firefox/1.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.6) Gecko/20050321 Firefox/1.0.2

The option "Web Page Complete" in the "Save Page As..." dialog is unavailable,
if the document is served as application/xhtml+xml (the recommended MIME-type
for XHTML).

Since the current Accept-header favors application/xhtml+xml over text/html,
this breaks even pages that are also available as text/html via content
negotiation. Fortunately (from this point of view) there are hardly any websites
using this MIME-type at the moment, but they probably will become more in
future. Thus considering severity as major.

Reproducible: Always

Steps to Reproduce:
1. Open a page which is served as application/xhtml+xml (e.g. the supplied link
above)
2. Try to save the page as "Web Page Complete"
Actual Results:  
Only "XHTML" is available, the options "Web Page Complete" and "Text Only" are
missing.

Expected Results:  
The same options as for documents served as text/html ar available. It should be
saved as *.html for compatibility with older browsers. An additional option to
use *.xhtml would be nice, but might confuse the user. The advanced user could
also set the suffix manually so it might be the best to leave this out.
Behaviour Confirmed ... 
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2

Should *NOT* save as .html as this will likely not be correctly handled by FF
later.. 
Webpages passed as application/xhtml+xml are done so for a reason. 
XHTML + XML should be passed as text/html unless there is specific reason to do
so... more info can be found here:
http://www.mozilla.org/docs/web-developer/faq.html#accept

Even if Web Page Complete worked  and saved as .xhtml the page still be loaded
as tag soup (text/html) over application/xhtml+xml as MIME types are specified
by the OS not the file system. This would NOT be desirable, hence lack of this
feature.

NOT A BUG ?

Howewer Mozilla encourages webmasters to use text/html type, according to
http://www.w3.org/TR/xhtml-media-types/ it is better to use
application/xhtml+xml media type for XHTML (even without MathML). Many
webmasters prefer to listen W3C rather than MF.

Firefox is already able to save documents as .xhtml without media files
associated with them. Adding "Web Page Complete" would only add the ability to
save also images and stylesheets associated with the document, but it shouldn't
IMHO change the way o parsing the document.

On my Debian GNU/Linux system files with .xhtml extension are parsed as
application/xhtml+xml and files with .html extension are parsed as text/html (I
know that this bug is for Windows XP, but it can be stretched on other operating
systems too).
Howewer Mozilla encourages webmasters to use text/html type, according to
http://www.w3.org/TR/xhtml-media-types/ it is better to use
application/xhtml+xml media type for XHTML (even without MathML). Many
webmasters prefer to listen W3C rather than MF.

Firefox is already able to save documents as .xhtml without media files
associated with them. Adding "Web Page Complete" would only add the ability to
save also images and stylesheets associated with the document, but it shouldn't
IMHO change the way o parsing the document.

On my Debian GNU/Linux system files with .xhtml extension are parsed as
application/xhtml+xml and files with .html extension are parsed as text/html (I
know that this bug is for Windows XP, but it can be stretched on other operating
systems too).
presumably the reason the option isn't available is that it isn't
implemented/doesn't work and ff devs don't like giving end users bad experiences
(of the form corrupted data). there's really no point advocating, however if
you're interested in working on this feature, speak up, someone will gladly
point you in the right direction.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050831
Firefox/1.0+ ID:2005083106

This has been fixed in HEAD.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
ropening in order to mark WORKSFORME
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
probablt fixed by bug 294759
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.