-rw-r--r-- | content/fireflix.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/content/fireflix.js b/content/fireflix.js index 92c42f4..966630c 100644 --- a/content/fireflix.js +++ b/content/fireflix.js | |||
@@ -798,10 +798,16 @@ var fireflix = { | |||
798 | } | 798 | } |
799 | }, | 799 | }, |
800 | render_description_frame: function(content) { | 800 | render_description_frame: function(content) { |
801 | if(!content) { | 801 | this.searchresult_description.innerHTML = ''; |
802 | this.searchresult_description.innerHTML = ''; | 802 | if(content) { |
803 | }else{ | 803 | var dp = new DOMParser(); |
804 | this.searchresult_description.innerHTML = content?content:''; | 804 | var pd = dp.parseFromString( |
805 | '<div xmlns="http://www.w3.org/1999/xhtml">'+content+'</div>', 'text/xml' ); | ||
806 | var de = pd.documentElement; | ||
807 | if(de.tagName=='parsererror') | ||
808 | this.searchresult_description.innerHTML=this.fireflix.loc_strings.getString('broken_description'); | ||
809 | else | ||
810 | this.searchresult_description.appendChild(de); | ||
805 | /* of all linking elements flickr only allows a */ | 811 | /* of all linking elements flickr only allows a */ |
806 | var as = this.searchresult_description.getElementsByTagName('a'); | 812 | var as = this.searchresult_description.getElementsByTagName('a'); |
807 | for(var a=0;a<as.length;++a) | 813 | for(var a=0;a<as.length;++a) |