phamcong / rdfquery

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

RDF/XML Parser Fails to Parse XMLLiteral Outter Text Nodes #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try parsing RDF/XML with a parseType="Literal" and no nested elements
2. literal label in IE is okay, in FF is "undefined", in WebKit is ""

Solution:
on line 734 of jquery.rdf.js replace:
  o = serializer.serializeToString(p.getElementsByTagName('*')[0]);
with:
  var xml = serializer.serializeToString(p);
  o = xml.substring(xml.indexOf('>')+1, xml.lastIndexOf('<'))

What version of the product are you using? On what operating system?
Any non-IE browser

Original issue reported on code.google.com by james-no...@leighnet.ca on 13 Oct 2009 at 3:34

GoogleCodeExporter commented 9 years ago
James, I've made you a committer on the project so that you can fix these 
issues.

Original comment by jeni.ten...@gmail.com on 2 Nov 2009 at 4:38