[evolution-rss] add link/href parsing (fixes html rendering)



commit 19befd91370d272a81f8f7299f28a0f19a6ac10f
Author: Lucian Langa <lucilanga gnome org>
Date:   Fri Feb 13 19:07:40 2015 +0100

    add link/href parsing (fixes html rendering)

 src/parser.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/parser.c b/src/parser.c
index 98c4f95..cc95086 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -333,6 +333,7 @@ parse_html(char *url, const char *html, int len)
                return NULL;
        doc = src;
        newbase = (gchar *)xmlGetProp(html_find((xmlNode *)doc, (gchar *)"base"), (xmlChar *)"href");
+
        d("newbase:|%s|\n", newbase);
        tmpdoc = (xmlDoc *)html_find((xmlNode *)doc, (gchar *)"base");
        xmlUnlinkNode((xmlNode *)tmpdoc);
@@ -340,6 +341,7 @@ parse_html(char *url, const char *html, int len)
        html_set_base((xmlNode *)doc, url, "img", "src", newbase);
        html_set_base((xmlNode *)doc, url, "input", "src", newbase);
        html_set_base((xmlNode *)doc, url, "link", "src", newbase);
+       html_set_base((xmlNode *)doc, url, "link", "href", newbase);
        html_set_base((xmlNode *)doc, url, "body", "background", newbase);
        html_set_base((xmlNode *)doc, url, "script", "src", newbase);
 /*      while (doc = html_find((xmlNode *)doc, "img"))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]