This patch is required due to changed behaviour of the XML parser
in XmlHttpRequest that parses XML responses from the AJAX/SQL
backend.
Firefox < 20.0 <foo> was parsed and returned as <bla>
Firefox >= 20.0 <foo> is parsed and returned as <bla>
This breaks Icons and other HTML code in Rico.LiveGrid cells
Addendum: Chrome alias WebKit seems to behave like Firefox >= 20.0 as well
};
Rico._getEncodedContent=function(parentNode) {
};
Rico._getEncodedContent=function(parentNode) {
- if (parentNode.innerHTML) return parentNode.innerHTML;
+ if (parentNode.innerHTML) {
+ if (Rico.isGecko && navigator.productSub >= "20100101")
+ parentNode.innerHTML.replace(/</g,'<').replace(/>/g,'>').replace(/&/g,'&');
+ else
+ return parentNode.innerHTML;
+ }
+
switch (parentNode.childNodes.length) {
case 0: return "";
case 1: return parentNode.firstChild.nodeValue;
switch (parentNode.childNodes.length) {
case 0: return "";
case 1: return parentNode.firstChild.nodeValue;