Closed Bug 169964 Opened 24 years ago Closed 21 years ago

newlines in an textarea don't return platform specific encoding

Categories

(Core :: DOM: Editor, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: doronr, Assigned: kinmoz)

References

()

Details

Goto http://blues.mcom.com/users/doron/publish/playground.html Enter a single character, followed by a newline Using javascript's string.charCodeAt (http://developer.netscape.com/docs/manuals/communicator/jsguide/restring.htm#1008595), I get "10" for a newline in Gecko. IE and ns4 on windows return "13" "10" ( 2 characters are used for newline). So this is a 4.x compatability problem, as we return the unix value for each platform.
this appears to be fixed in 1.3b
Doron, mind actually attaching a testcase to the bug or something?
Possibly related: Bug #241263
Actually, this is invalid. Line-breaks in the DOM are always just an LF.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.