Introduction
Introduction Statistics Contact Development Disclaimer Help
whoops, check in some related changes from previous commits - webdump - HTML to…
git clone git://git.codemadness.org/webdump
Log
Files
Refs
README
LICENSE
---
commit 62884d7b5684e791bb0cd6466f74367d6d71618d
parent 8ab6a487c7adcfe44d9d3c07c81a1c07d6dedd2a
Author: Hiltjo Posthuma <[email protected]>
Date: Wed, 13 Sep 2023 20:41:31 +0200
whoops, check in some related changes from previous commits
Diffstat:
M webdump.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/webdump.c b/webdump.c
@@ -2131,13 +2131,16 @@ xmlattr(XMLParser *p, const char *tag, size_t taglen, c…
cur->tag.displaytype |= DisplaySelectMulti;
if (!tagcmp(tag, "a") && !attrcmp(name, "href"))
- string_append(&attr_src, value, valuelen);
+ string_append(&attr_href, value, valuelen);
+
+ if (!tagcmp(tag, "object") && !attrcmp(name, "data"))
+ string_append(&attr_data, value, valuelen);
if ((!tagcmp(tag, "img") || !tagcmp(tag, "video") ||
!tagcmp(tag, "source") || !tagcmp(tag, "track") ||
!tagcmp(tag, "audio")) &&
- !attrcmp(name, "src") && valuelen)
- string_append(&attr_href, value, valuelen);
+ !attrcmp(name, "src") && valuelen)
+ string_append(&attr_src, value, valuelen);
/* show img alt attribute as text. */
if (!tagcmp(tag, "img") && !attrcmp(name, "alt"))
@@ -2145,9 +2148,9 @@ xmlattr(XMLParser *p, const char *tag, size_t taglen, con…
if (!attrcmp(name, "checked"))
string_append(&attr_checked, value, valuelen);
- if (!attrcmp(name, "type"))
+ else if (!attrcmp(name, "type"))
string_append(&attr_type, value, valuelen);
- if (!attrcmp(name, "value"))
+ else if (!attrcmp(name, "value"))
string_append(&attr_value, value, valuelen);
}
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.