entitites give two newlines in the DOM (CRLF gives two line breaks)

RESOLVED INVALID

Status

()

Core
Layout: Text
--
minor
RESOLVED INVALID
15 years ago
8 years ago

People

(Reporter: Ken Johanson, Unassigned)

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

15 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4a) Gecko/20030303
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4a) Gecko/20030303

Inside of <PRE>, if CR-LFs pairs were converted by the webserver to their HTML
meta characters (&#13;&#10;), Mozilla renders them as two lines. Other browsers
render a single line.

Reproducible: Always

Steps to Reproduce:
1. Open http://www.onnet.cc/mozzNewlines.html in Moz.
2. Open same URL in NS4 or IE.


Actual Results:  
NS4 and IE render a single newline per pair. Moz renders two. Note that the same
string inside the sample TEXTAREA does render okay.

Expected Results:  
Should render the one line, similar to a raw CRLF does already inside of
<PRE></PRE>.

Some server-side rawtext-to-html char translators convert (char)10 and (char)13,
and (char)9 among others, to their HTML meta equivs to effect html-obfuscation
or perhaps some level of cross-site scripting or form safety.
Parser.  We're ending up with two newlines in the content model....
Assignee: other → harishd
Component: Layout → Parser
QA Contact: ian → dsirnapalli
Confirmed.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Serial HTML meta CRLFs rendered as two line breaks → &#13;&#10; entitites give two newlines in the DOM (CRLF gives two line breaks)
Whiteboard: DUPEME
Assignee: harishd → nobody
QA Contact: dsirnapalli → parser
Not a parser bug. Maybe a layout bug or not a bug at all.
Component: HTML: Parser → Layout: Text
QA Contact: parser → layout.fonts-and-text
I'm claiming this is not a bug, but see bug 557197.
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → INVALID
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.