void EmailInputType::countUsage()
{
    countUsageIfVisible(UseCounter::InputTypeEmail);
    bool hasMaxLength = element().fastHasAttribute(HTMLNames::maxlengthAttr);
    if (hasMaxLength)
        countUsageIfVisible(UseCounter::InputTypeEmailMaxLength);
    if (element().multiple()) {
        countUsageIfVisible(UseCounter::InputTypeEmailMultiple);
        if (hasMaxLength)
            countUsageIfVisible(UseCounter::InputTypeEmailMultipleMaxLength);
    }
}
void TelephoneInputType::countUsage()
{
    countUsageIfVisible(UseCounter::InputTypeTel);
}
예제 #3
0
void URLInputType::countUsage()
{
    countUsageIfVisible(UseCounter::InputTypeURL);
}
void PasswordInputType::countUsage()
{
    countUsageIfVisible(UseCounter::InputTypePassword);
    if (element().fastHasAttribute(HTMLNames::maxlengthAttr))
        countUsageIfVisible(UseCounter::InputTypePasswordMaxLength);
}
예제 #5
0
void NumberInputType::countUsage()
{
    countUsageIfVisible(UseCounter::InputTypeNumber);
}