diff --git a/minimo/chrome/content/rssview/rssload.js b/minimo/chrome/content/rssview/rssload.js index 6480a04edcf..031951376af 100644 --- a/minimo/chrome/content/rssview/rssload.js +++ b/minimo/chrome/content/rssview/rssload.js @@ -101,12 +101,15 @@ blenderObject.prototype.apply = function () { htmlFragment = xsltProcessor.transformToFragment(this.xmlRef, this.targetDocument); } catch (e) { } - this.targetElement.appendChild(htmlFragment.firstChild); - - document.title=document.getElementById("pagetitle").innerHTML; - - //document.getElementById("loadmessage").style.display="none"; + this.targetElement.appendChild(htmlFragment.firstChild); + /* + * Updates the page title if pagetitle generated ID exists. + * Check the rss_*.xml templates for additional details.. + */ + if(document.getElementById("pagetitle")) { + document.title=document.getElementById("pagetitle").innerHTML; + } } }