Closed Bug 306977 Opened 20 years ago Closed 20 years ago

Comments from content/xml/content/src/xhtml11.dtd are inserted into XHTML files saved by Firefox

Categories

(Firefox :: General, defect)

1.5.0.x Branch
x86
All
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 306353

People

(Reporter: marcoos, Unassigned)

Details

Attachments

(1 file)

XML comments from content/xml/content/src/xhtml11.dtd are being copied to each XHTML file with application/xhtml+xml when saving as "webpage, complete". Steps to reproduce: 1. Open a web page served as application/xhtml+xml, for example, my weblog http://marcoos.jogger.pl/ 2. File > Save as > "web page, complete" 3. Open the saved file in a text editor or use Firefox's view source. Actual results: In the saved file, between the <?xml ... ?> prologue and the first tag of the document (or as the first lines of the saved file, if the original didn't containt xml proglogue) you can see the following comments, copied from xhtml11.dtd: <!-- ***** BEGIN LICENSE BLOCK ***** - Version: MPL 1.1/GPL 2.0/LGPL 2.1 - - The contents of this file... ... blah blah ... - ***** END LICENSE BLOCK ***** --> <!-- * Predefined HTML entities to be loaded when parsing XHTML documents. * The contents match mozilla/parser/htmlparser/src/nsHTMLEntityList.h, * except that Navigator entity extensions are not included. --> <!-- ISO 8859-1 entities --> <!-- Mathematical symbols and Greek letters --> <!-- Markup-significant and internationalization characters --> Expected results: 1. No such comments. :) User-agent strings of some affected builds: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+ Mozilla/5.0 (X11; U; Linux i686; pl; rv:1.8b4) Gecko/20050813 Firefox/1.0+ Mozilla/5.0 (Windows; U; Win98; fi; rv:1.8b4) Gecko/20050828 Firefox/1.0+
Example of a XHTML file saved by Firefox with the above-mentioned comments added to the file.
Attachment #194779 - Attachment mime type: application/xhtml+xml → text/plain
Summary: Comments content/xml/content/src/xhtml11.dtd are inserted into XHTML files saved by Firefox → Comments from content/xml/content/src/xhtml11.dtd are inserted into XHTML files saved by Firefox
*** This bug has been marked as a duplicate of 306353 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
v.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: