Closed
Bug 308930
Opened 19 years ago
Closed 19 years ago
Saving a XHTML page removes the '/>' from the '<link rel="stylesheet"' line
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
DUPLICATE
of bug 120556
People
(Reporter: ed, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.10) Gecko/20050824 Firefox/1.0.6 Build Identifier: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.10) Gecko/20050824 Firefox/1.0.6 When saving a website to disk, Mozilla (Firefox) wants to copy the stylesheet and such as well. It also alters the '<link rel="stylesheet"' line to point to the proper filename. It does a great job at it, but forgets to put a '/>' at the end when the page is a XHTML document, thus breaking its validity. Reproducible: Always Steps to Reproduce: 1. Visit a page that is written in XHTML and uses CSS stylesheets 2. Save the page to your harddisk 3. Throw the page through the W3C Validator (http://validator.w3.org/) Actual Results: The validator shows an error that the '<link rel="stylesheet"' tag isn't closed Expected Results: It should have added a prober '/>' at the end of the '<link rel="stylesheet"' tag.
Please give an example page, I'm guessing you're referring to a page sent with a HTML (rather than a XHTML) MIME type? If that's the case then this bug is a duplicate of Bug 120556 (see Bug 120556 comment 6). Use the "HTML only" type in the Save As dialog to get the original source.
Reporter | ||
Comment 2•19 years ago
|
||
Woops - yes it is sent as text/html. Wouldn't it be better to look at the doctype instead of the mime-type it was sent with? I guess 99% of the XHTML pages are sent as text/html.
(In reply to comment #2) > Wouldn't it be better to look at the doctype instead of the mime-type it was > sent with? I guess 99% of the XHTML pages are sent as text/html. I suspect a lot of "XHTML" pages would die horribly if treated as such. *** This bug has been marked as a duplicate of 120556 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•