[project @ 2004-06-09 23:21:24 by jmb]

Add background attribute to URL rewriting engine

svn path=/import/netsurf/; revision=946
This commit is contained in:
John Mark Bell 2004-06-09 23:21:24 +00:00
parent b6570bb7a8
commit 8cb25b425d

View File

@ -481,7 +481,9 @@ bool rewrite_urls(xmlNode *n, const char *base)
* 1) data <object>
* 2) href <a> <area> <link> <base>
* 3) src <script> <input> <frame> <iframe> <img>
* 4) n/a <style>
* 4) n/a <style>
* 5) background any (except those above)
*/
/* 1 */
if (strcmp(n->name, "object") == 0) {
@ -536,6 +538,11 @@ bool rewrite_urls(xmlNode *n, const char *base)
return true;
}
/* 5 */
else {
if (!rewrite_url(n, "background", base))
return false;
}
/* now recurse */
for (child = n->children; child; child = child->next)