Closed
Bug 245092
Opened 22 years ago
Closed 22 years ago
text in element in XML document is split up into chunks of 4096 characters resulting in a DOM document that is not normalized
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 194231
People
(Reporter: martin.honnen, Unassigned)
Details
Attachments
(2 files)
This bug is filed as a followup to the newsgroup thread
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=c96qa9%245541%40ripley.netscape.com&rnum=3&prev=/groups%3Fq%3Dgroup:*mozilla*dom*%26hl%3Den%26lr%3D%26ie%3DUTF-8%26scoring%3Dd
where Boris mentions that the Mozilla parser breaks up text nodes into chunks of
4096 characters. However the DOM Level 2 Core specification
http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1312295772
clearly says that
"When a document is first made available via the DOM, there is only one Text
node for each block of text."
so the Mozilla behaviour to create several adjacent text nodes of 4096 or less
characters is a bug.
I will attach a test case that demonstrates the bug by counting the child nodes
of an element node first after the document has been loaded and parsed and then
again after the normalize function has been called.
I have tested with Netscape 7.1 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.4) Gecko/20030624 Netscape/7.1 (ax)), Mozilla 1.8a (Mozilla/5.0 (Windows;
U; Windows NT 5.1; en-US; rv:1.8a) Gecko/20040430) and Firefox 0.8, all exhibit
the bug.
| Reporter | ||
Comment 1•22 years ago
|
||
| Reporter | ||
Comment 2•22 years ago
|
||
Comment 3•22 years ago
|
||
*** This bug has been marked as a duplicate of 194231 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•