Closed Bug 293358 Opened 20 years ago Closed 20 years ago

Firefox truncates XML nodes to 4096 chars when using aDom.nodeValue

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 194231

People

(Reporter: tedwilliams, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Consider the following javascript. I can send you the complete script if desired. aReq = new XMLHttpRequest(); aReq.open("GET", "xmldoc.xml", false); // Synchronous request aReq.send(null); if (aReq.readyState == 4 ) // 4==Complete { aElem = document.getElementById("ConsoleOutput"); aText = aReq.responseText; aElem.value = aText; aDom = aReq.responseXML; alert("Dom type:" + typeof aDom); aChild = aDom.firstChild; // First node is mydoc aElem.value = aChild.firstChild.nodeValue; } Reproducible: Always Steps to Reproduce: 1. Access the web page Firefox4Kbug.htm containing the above code 2. Click on Go button to download XML document xmldoc.xml containing node w/ 4K+ chars. The entire XML document is received. Nothing truncated. The xml doc is <mydoc>(4K chars go here...)</mydoc> 3. Click on OK to extract text from root element. Actual Results: Only the first 4K chars in the XML document are displayed. Expected Results: Should receive all the characters in the node. I can send you the javascript and a sample document. Unfortunately, I do not have a publically accessible web site to put this up on.
*** This bug has been marked as a duplicate of 194231 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.