Closed Bug 607249 Opened 15 years ago Closed 15 years ago

When saving page as x.html source code is saved, but changed causing validation errors

Categories

(Firefox :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 603614

People

(Reporter: jasperfrumau, Unassigned)

Details

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.11) Gecko/20101012 Firefox/3.6.11 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.11) Gecko/20101012 Firefox/3.6.11 I saved a web page which is not accessible online to upload it to W3's validator. Validator warned of many many errors and warning. When I studied the saved page I realized html in DOCTYPE was saved capitalized and that several trailing / in html tags needed for valid XHTML were removed. So source code was adjusted/corrupted on saving. For example: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"> <head profile="http://gmpg.org/xfn/11"> <title>Title</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> was saved as: <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml" lang="en-US"><head profile="http://gmpg.org/xfn/11"> <title>Title</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> So somehow FF changed source code on saving, which should not occur. Reproducible: Always Steps to Reproduce: 1.Go to random page 2. Save page as x.html 3. Compare source code of saved file to source code view in browser 4. See differences Actual Results: hml in DOCTYPE was capitalized causing validation errors. /> were turned into > causing XHTML validation errors. Expected Results: It should save source code as it is.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.