Closed Bug 617006 Opened 14 years ago Closed 14 years ago

Firefox loses XHTML formatting when saving

Categories

(Firefox :: File Handling, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: lecotegougdelaforce, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.12) Gecko/20101027 Fedora/3.6.12-1.fc14 Firefox/3.6.12 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.12) Gecko/20101027 Fedora/3.6.12-1.fc14 Firefox/3.6.12 Firefox will lose XHTML formatting when saving (using "save as"), making wrong pages. Reproducible: Always Steps to Reproduce: 1. Go to http://www.w3schools.com/xhtml/. 2. Save page on disk (using "save as"). 3. Check source of local version versus online version. Actual Results: The local copy is not W3C compliant, since for instance XHTML tag closing ("/>") has been changed to HTML tag closing (">"). Expected Results: The local copy should be the same as the source file, i.e. respect XHTML formatting. IMO, this is why a DOCTYPE is intended.
The page is served with a mime type of text/html. It must be served with an xhtml mime type e.g. application/xhtml+xml if it is to be saved as such.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.