Introduction
Introduction Statistics Contact Development Disclaimer Help
set DisplaySelectMulti for <select> with multiple attribute - webdump - HTML to…
git clone git://git.codemadness.org/webdump
Log
Files
Refs
README
LICENSE
---
commit 8ab6a487c7adcfe44d9d3c07c81a1c07d6dedd2a
parent bf60f514843dfa9c2cc5d10fa9e7f3978da5cefb
Author: Hiltjo Posthuma <[email protected]>
Date: Wed, 13 Sep 2023 20:40:20 +0200
set DisplaySelectMulti for <select> with multiple attribute
This bitmask allows easy layout changes or logic.
Diffstat:
M webdump.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/webdump.c b/webdump.c
@@ -2127,6 +2127,9 @@ xmlattr(XMLParser *p, const char *tag, size_t taglen, con…
if (!attrcmp(name, "aria-hidden") || !attrcmp(name, "hidden"))
cur->tag.displaytype |= DisplayNone;
+ if (!tagcmp(tag, "select") && !attrcmp(name, "multiple"))
+ cur->tag.displaytype |= DisplaySelectMulti;
+
if (!tagcmp(tag, "a") && !attrcmp(name, "href"))
string_append(&attr_src, 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.