Closed Bug 292110 Opened 19 years ago Closed 19 years ago

XMLDom nodeValue truncated after 4138 characters (using JavaScript to get the node value)

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 194231

People

(Reporter: mark.furniss, Assigned: bugzilla)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3

See my example at http://www.mcg-graphics.com/test.htm
The last three characters returned from the node value should be abc - on
Mozilla (and Galeon for that matter), the character c is truncated. This works
fine in IE (although that doesn't guarantee they're right ;-). I've tested this
on Windows XP, Max OS X, RedHat 9, and SuSE (not sure which version - it was
installed about a year ago!) using Firefox, and they all behave the same (as
does the Mozilla 1.7.5

Reproducible: Always

Steps to Reproduce:
1. See my test page at http://www.mcg-graphics.com/test.htm
2. Click the 'Test' button.
3. Scroll to the end of the text (you may need to highlight the text if on
Windows as Mozilla doesn't render long strings very well).

Actual Results:  
The last two characters are ab - the c has been truncated.

Expected Results:  
The last three characters should be abc.
Your node has 4097 characters, not 4139.

*** This bug has been marked as a duplicate of 194231 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.