mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-02 07:35:25 +03:00
[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:
parent
b6570bb7a8
commit
8cb25b425d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user