Closed
Bug 201823
Opened 23 years ago
Closed 20 years ago
nsXmlRpcClient.js can't handle more than one TEXT_NODE per <VALUE> Node
Categories
(Core :: XML, defect)
Core
XML
Tracking
()
RESOLVED
FIXED
People
(Reporter: popoqc, Assigned: samuel)
References
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3) Gecko/20030312
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3) Gecko/20030312
nsXmlRpcClient.js can't handle more than one TEXT_NODE per <VALUE> Node and
throw Components.Exception in parseValue function on line 533. When a value of
type Text is large, the value is split in more than one TEXT_NODE. So the
parseValue function get confused with a supposedly ELEMENT_NODE.
I've tried to fix it but I don't have the skill to do it :-(
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Expected Results:
Append all the TEXT_NODE contained in a <VALUE> Node to the cValue.
| Reporter | ||
Comment 1•23 years ago
|
||
Added tseng_mike@yahoo.com to CC.
He and I are working on MozBlog.
XML-RPC is owned by Samuel.
Assignee: heikki → samuel
| Assignee | ||
Comment 3•23 years ago
|
||
I'm not sure what to do with this since you're using a not checked-in version of
xml-rpc. :-/ I guess I'll make this dependant on the other bug and make a new
version there.
Status: UNCONFIRMED → NEW
Depends on: 197087
Ever confirmed: true
OS: Windows 98 → All
Hardware: PC → All
| Assignee | ||
Comment 4•23 years ago
|
||
How long does the string need to be? Could you attach a testcase?
| Reporter | ||
Comment 5•23 years ago
|
||
See near ... D'o& (Break here) ugrave; la position ... in the first <value>
that has the "content" name.
To view it easily I suggest you to open this file in the DOM Inpector.
| Reporter | ||
Comment 6•23 years ago
|
||
You could go to the parseValue function in this file to check that my
correction could be ok since I'm not sure it is. Could be a starting point.
Samuel, we create 4k (max) text nodes by design, and split longer text into
adjacent text nodes. There could be an arbitrary number of them (depends on the
data). Please note that this splitting during document load is actually against
the DOM spec and we have a bug on that (see bug 194231).
| Assignee | ||
Comment 8•23 years ago
|
||
I attached a new version in bug 197087 that contains the .normalize()
workaround. It appears to work on the example attached here.
Status: NEW → ASSIGNED
| Assignee | ||
Comment 9•20 years ago
|
||
fixed by bug 197087
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•