Closed
Bug 301751
Opened 19 years ago
Closed 19 years ago
"Save Page As" or "Save Frame As" moves </form> tag and breaks form & javascript
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 225979
People
(Reporter: peter.vieth, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050517 Firefox/1.0.4 (Debian package 1.0.4-2)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050517 Firefox/1.0.4 (Debian package 1.0.4-2)
I'm using an internal company page and when loading pages with forms that I have
saved </form> gets moved directly after <form>. All the elements in that form
are no longer part of the form and this breaks the javascript on the page as
well as preventing correct submission of the form.
Reproducible: Always
Steps to Reproduce:
1. Create an HTML file containing the following code:
<html>
<head>
</head>
<body>
<TABLE width="100%">
<FORM name="studyForm" method="post" action="StudyFormPostServlet">
<TR> <!-- demographics -->
<TD>
<TABLE width=100%>
<TR>
<TD width=100%>
</TD>
</TR>
</TABLE>
</TD>
</TR> <!-- end of demographics -->
</form>
</table>
</body>
</html>
2. Load the page into Firefox.
3. Go to the menu File and choose Save As.
4. Save the file to disk.
Actual Results:
These are the contents of the saved file:
<html><head></head>
<body>
<table width="100%">
<form name="studyForm" method="post" action="StudyFormPostServlet"></form>
<tbody><tr> <!-- demographics -->
<td>
<table width="100%">
<tbody><tr>
<td width="100%">
</td>
</tr>
</tbody></table>
</td>
</tr> <!-- end of demographics -->
</tbody></table>
</body></html>
Expected Results:
Leave </form> in the correct spot, like so:
<html><head></head>
<body>
<table width="100%">
<form name="studyForm" method="post" action="StudyFormPostServlet">
<tbody><tr> <!-- demographics -->
<td>
<table width="100%">
<tbody><tr>
<td width="100%">
</td>
</tr>
</tbody></table>
</td>
</tr> <!-- end of demographics -->
</form>
</tbody></table>
</body></html>
I've tried this in Firefox under Debian, Gentoo, Win2k pro, Win2k server, and it
happens in all of them.
Comment 1•19 years ago
|
||
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b4) Gecko/20050721 Firefox/1.0+ ID:2005072117 I can confirm this, but I think it's a dupe.
Comment 3•19 years ago
|
||
Saving the page as "Web page, complete" will save Gecko's interpretation of the page. Saving as "Web page, HTML only" will save the original source. This is happening because the form element is not allowed to contain tr elements according to the html spec, so Gecko assume's an end tag is missing there. *** This bug has been marked as a duplicate of 225979 ***
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
•