Closed Bug 256035 Opened 20 years ago Closed 20 years ago

File > Save Page As... strips out ending / from self closing tags

Categories

(Firefox :: Menus, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 205264

People

(Reporter: khall51, Assigned: bugzilla)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2 Using the Save Page As... option in the File menu incorrectly strips out the closing / in (X)HTML tags. For instance, in a page that contains the lines: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> After saving the page from the browser the file contains the lines: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Script-Type" content="text/javascript"> This can invaldate XHTML code and is also simply inaccurate. Reproducible: Always Steps to Reproduce: 1. Visit a web page that uses self closing tags (most pages that are valid XHTML will have this somewhere for an image or meta tag). 2. Use File > Save Page As... and save the page to your HD. 3. Now go to View > Page Source (Ctrl+U on Windows) 4. Compare the two files to see closing slahses have been stripped out. Actual Results: Self closing tags (e.g. <img source="foo.gif" />) have the closing slash stripped out (e.g. <img source="foo.gif">). Expected Results: The code should not have been altered. The closing slashes should still be present.
*** This bug has been marked as a duplicate of 205264 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
QA Contact: bugzilla → menus
You need to log in before you can comment on or make changes to this bug.