Extract parent charset and quirkiness

svn path=/trunk/netsurf/; revision=10416
This commit is contained in:
John Mark Bell 2010-04-16 20:55:17 +00:00
parent be3b246eab
commit c4de2cf6b3
1 changed files with 3 additions and 4 deletions

View File

@ -321,10 +321,9 @@ void browser_window_go_post(struct browser_window *bw, const char *url,
post.data.urlenc = post_urlenc;
}
if (parent != NULL) {
//newcache extract charset and quirks from parent content
child.charset = NULL;
child.quirks = false;
if (parent != NULL && content_get_type(parent) == CONTENT_HTML) {
child.charset = html_get_encoding(parent);
child.quirks = content_get_quirks(parent);
}
/* Normalize the request URL */