Closed
Bug 306524
Opened 19 years ago
Closed 19 years ago
DOMParser truncates TEXT nodes to 4096 characters
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 194231
People
(Reporter: paylett, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5 When using DOMParser.parseFromString, the DOM returned only contains the first 4096 characters of TEXT nodes. Reproducible: Always Steps to Reproduce: var text = ''; for (var i=0; i<500; ++i) text += '1234567890'; text += ''; alert(text.length); var xml = '<bigtext>' + text + '</bigtext>'; var parser = new DOMParser(); var dom = parser.parseFromString(xml, "text/xml"); text = dom.documentElement.firstChild.nodeValue; alert(text.length); Actual Results: First alert shows 5000 Second alert shows 4096 Expected Results: First alert shows 5000 Second alert shows 5000
Comment 1•19 years ago
|
||
*** 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.
Description
•