Closed
Bug 295886
Opened 20 years ago
Closed 20 years ago
Content of a page containing <PRE> tags is malformed when viewed in the browser, or via the "View source"-option, or when the page is downloaded and then viewed with a text editor.
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
People
(Reporter: salaattione, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
|
349 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 If a page contains ie. code inside <pre>-tags, the contents of a document seem to be malformed. In the example above, I think that the problem lies within the "i<k-1;"-part. Reproducible: Always Steps to Reproduce: 1. Produce an html-document containing <pre>-tags and some java-code including for example "for (int i=0; i<k-1; i++)" within the pre-area. 2. View the page with the browser, save the page with the browser or view the pages source. Actual Results: Nothing after the "for (int i=0; i"-part is shown in the browser. Content after the "for (int i=0; i"-part is malformed. Expected Results: The browser should have displayed the page correctly and not malform the content.
Summary: Content of the page is malformed when viewed in the browser, or via the "View source"-option, or when the page is downloaded and then viewed with a text editor. → Content of a page containing <PRE> tags is malformed when viewed in the browser, or via the "View source"-option, or when the page is downloaded and then viewed with a text editor.
Comment 2•20 years ago
|
||
The '<' character needs to be escaped as '<' *** This bug has been marked as a duplicate of 73889 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Component: General → HTML: Parser
Product: Firefox → Core
Resolution: --- → DUPLICATE
Version: unspecified → 1.7 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•