Dominique Martinet <[email protected]> writes:

> There is no "unmask" or "print anyway" command that would do that.

Yes, we can always add an unmask command if we really need it, and it'd
just clear the bit.

I also noticed that when parsing input elements that have type="text",
itype_minor is never set.  So for <input type="text"> it's always 0 (which
corresponds to INP_DATE).  I'd say we need a "default" placeholder at
the end of the minor types enum, to specify that this element is plain
old "text", and htmlInputHelper() from decorate.c should look something
like this:

void htmlInputHelper(struct htmlTag *t)
{
        int n = INP_TEXT;
        int len;
        char *myname = (t->name ? t->name : t->id);
        const char *s = attribVal(t, "type");
        if (stringEqual(t->info->name, "button")) {
                n = INP_BUTTON;
        } else if (s) {
                n = stringInListCI(inp_types, s);
                if (n == INP_TEXT) {
                        t->itype_minor = INP_DEFAULTMINOR;
                }

Also, when the type was not found in inp_types nor inp_others,
itype_minor should probably be set to INP_DEFAULTMINOR (or whatever you
care to call it).

-- Chris
_______________________________________________
Edbrowse-dev mailing list
[email protected]
http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev

Reply via email to