[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wget2 | Add extended parsing option (#539)
From: |
Tim Rühsen |
Subject: |
Re: wget2 | Add extended parsing option (#539) |
Date: |
Sat, 28 Nov 2020 17:03:54 +0000 |
Tim Rühsen commented:
@matti.vl Sorry, no wildcards here.
The comparison function for searching a tag in the follow-tags list is in
src/options.c ~L619:
```
static int WGET_GCC_NONNULL_ALL compare_tag(const wget_html_tag *t1, const
wget_html_tag *t2)
{
int n;
if (!(n = wget_strcasecmp_ascii(t1->name, t2->name))) {
if (!t1->attribute) {
if (!t2->attribute)
n = 0;
else
n = -1;
} else if (!t2->attribute) {
n = 1;
} else
n = wget_strcasecmp_ascii(t1->attribute, t2->attribute);
}
return n;
```
So we could add wildcard support here.
I would rather put 'regular' HTML tags and attributes into our static list.
But I see your need for wildcard custom tags...
Leaving this issue open to anyone who might like to work on it.
--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget2/-/issues/539#note_456513715
You're receiving this email because of your account on gitlab.com.