Issue #2532 - Implement form[method=dialog]

See bug 1557303
This commit is contained in:
Moonchild 2024-06-15 10:11:00 +02:00 committed by roytam1
commit 6ee3f46900
11 changed files with 162 additions and 2 deletions

View file

@ -14,6 +14,13 @@ static const nsAttrValue::EnumTable kFormMethodTable[] = {
{ nullptr, 0 }
};
static const nsAttrValue::EnumTable kFormMethodTableDialogEnabled[] = {
{"get", NS_FORM_METHOD_GET},
{"post", NS_FORM_METHOD_POST},
{"dialog", NS_FORM_METHOD_DIALOG},
{nullptr, 0}
};
// Default method is 'get'.
static const nsAttrValue::EnumTable* kFormDefaultMethod = &kFormMethodTable[0];