Closed Bug 177303 Opened 22 years ago Closed 22 years ago

Parser (and hence Composer) drops line breaks after DOCTYPE, HTML, HEAD, /STYLE, and /BODY tags

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows ME
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 25141

People

(Reporter: bugzilla2, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.2b) Gecko/20021025 Build Identifier: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.2b) Gecko/20021025 When "Retain Original Source Formatting" is selected in Composer Preferences, Composer removes newlines after the DOCTYPE, HTML, HEAD, /STYLE, and /BODY tags. Reproducible: Always Steps to Reproduce: 1. Select "Retain Original Source Formatting" in Composer Preferences 2. Open the attached test case file or any HTML file 3. Switch to HTML SOURCE view Actual Results: Composer has combined the following onto one line: <html><head><title>Page Title</title> ... </style></head> ... </body></html> Expected Results: "Retain Original Source Formatting" should leave my code as I typed it Separate bugs deal with extra line feeds being added, both in the head (Bug 159615) and the body (BUG 177866). May be an Editor: Composer issue.
Attached file Test case showing problem (deleted) —
To composer.
Assignee: harishd → syd
Component: DOM to Text Conversion → Editor: Composer
Boris: this was assigned to Harish because the parser isn't preserving newlines outside the body. Once the parser throws away the information, there's nothing composer or the serializer can do to get it back. I'm fairly sure there's another parser bug with more information on this, and this should probably be a dup. Back to parser, with a slightly clearer summary.
Component: Editor: Composer → Parser
Summary: Composer drops line breaks after DOCTYPE, HTML, HEAD, /STYLE, and /BODY tags → Parser (and hence Composer) drops line breaks after DOCTYPE, HTML, HEAD, /STYLE, and /BODY tags
Whiteboard: dupme
Now that I know to look in Parser, I found the dupe myself. It's 25141. I'll add comment to that bug and copy the test case. *** This bug has been marked as a duplicate of 25141 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Whiteboard: dupme
verified.
Status: RESOLVED → VERIFIED
reassign in case bugs are later reopened
Assignee: syd → composer
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: