nasar2016 / rdfquery

Automatically exported from code.google.com/p/rdfquery
0 stars 0 forks source link

RDF/XML text node cutoff #31

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Call $.rdf.load() on an RDF/XML Document with a text node of size greater 
than ~4K (Mozilla; see 
http://www.quirksmode.org/bugreports/archives/2004/12/text_node_maxim.html for 
more).
2. Query for the appropriate triple.
3. Examine the value given.

What is the expected output? What do you see instead?
The value should be a single string containing the entire triple literal. 
Instead, the value contains only the first ~4K of the literal.

What version of the product are you using? On what operating system?
rdfQuery 1.0, jQuery 1.4.4, Firefox 3.6.13, Ubuntu 9.10.

Please provide any additional information below.
This problem can be solved by inserting a doc.normalize() call in 
parseRdfXml(), line 1903. This function 'glues together' adjacent text nodes. 
I've only tested this on Firefox with an RDF/XML document, so I'm not sure how 
it affects other functions eg. RDFa parsing.

Original issue reported on code.google.com by rimming...@gmail.com on 13 Jan 2011 at 5:00