[Project_owners] html entries in xml declined parsing?
Foreningen Selvet - Jesper Staun Hansen
jesper at selvet.dk
Fri Jul 20 14:39:30 PDT 2007
Well, I never considered it that way.
Thanks, that actually helped, since I never considered that the &xxx;
were looked up in the language files.
Now I have quiet a different problem, but also related to what I've
written about with the file content:
With the following:
document.getElementById("indhold").value = data.indhold;
dump("dumped: "+ document.getElementById("indhold").value +"\n");
<description id="indhold" style="padding-left:2em;white-space:
Now in the dump the following is displayed:
Which seems right, as that is what the letter contained, and the
"whopper whopper yey" is displayed with the proper linebreaking. But!
The "Thanks(linebreak)(linebreak)yes sir" is not displayed proper when
viewed on the xul page.
It displays what can be described as this:
Or at least it looks like really small ^'s
So, what goes wrong here?
> without knowing anything about mozilla's domparser,
> - if you want to use entities inside XML you must declare
> those entities. å in your example needs to be
> defined somewhere. This goes for all entities except
> < and > and &
> - An xml node containing "Thanks<br />yes sir"
> contains 3 nodes: 2 textnodes and 1 empty node.
> if you mean to wrap the html literal in xml, try
> "Thanks<br />yes sir"
> This is *literally* the same as the above, but
> it parses as a string instead of multiple xml nodes.
> Project_owners mailing list
> Project_owners at mozdev.org
More information about the Project_owners